What’s Vulnerable › Vulnerabilities
CVE-2021-47150: net: fec: fix the potential memory leak in fec_enet_init()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-25 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: net: fec: fix the potential memory leak in fec_enet_init() If the memory allocated for cbd_base is failed, it should free the memory allocated for the queues, otherwise it causes memory leak. And if the memory allocated for the queues is failed, it can return error directly.
Affected products
- Linux kernel: from 3.18 before 4.19.193; from 4.20 before 5.4.124; from 5.5 before 5.10.42; from 5.11 before 5.12.9; 5.13-rc1, 5.13-rc2, 5.13-rc3 — fixed in 4.19.193, 5.10.42, 5.12.9, 5.4.124
How to fix
Upgrade to a fixed version: Linux kernel 4.19.193, 5.10.42, 5.12.9, 5.4.124. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/15102886bc8f5f29daaadf2d925591d564c17e9f
- https://git.kernel.org/stable/c/20255d41ac560397b6a07d8d87dcc5e2efc7672a
- https://git.kernel.org/stable/c/32a1777fd113335c3f70dc445dffee0ad1c6870f
- https://git.kernel.org/stable/c/619fee9eb13b5d29e4267cb394645608088c28a8
- https://git.kernel.org/stable/c/8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd
- https://git.kernel.org/stable/c/15102886bc8f5f29daaadf2d925591d564c17e9f
- https://git.kernel.org/stable/c/20255d41ac560397b6a07d8d87dcc5e2efc7672a
- https://git.kernel.org/stable/c/32a1777fd113335c3f70dc445dffee0ad1c6870f
- https://git.kernel.org/stable/c/619fee9eb13b5d29e4267cb394645608088c28a8
- https://git.kernel.org/stable/c/8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd
Get alerted when CVE-2021-47150 or the next vulnerability affects your stack