# CVE-2021-47150: net: fec: fix the potential memory leak in fec_enet_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:45.875Z
- Modified: 2026-06-17T04:16:39.980Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 59d0f746564495c7f54526674deabfcf101236a1 before 15102886bc8f5f29daaadf2d925591d564c17e9f; from 59d0f746564495c7f54526674deabfcf101236a1 before 20255d41ac560397b6a07d8d87dcc5e2efc7672a; from 59d0f746564495c7f54526674deabfcf101236a1 before 8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd; from 59d0f746564495c7f54526674deabfcf101236a1 before 32a1777fd113335c3f70dc445dffee0ad1c6870f; from 59d0f746564495c7f54526674deabfcf101236a1 before 619fee9eb13b5d29e4267cb394645608088c28a8; 3.18 (not affected: before 3.18; from 4.19.193 up to 4.19.*; from 5.4.124 up to 5.4.*; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux 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

## References

- <https://git.kernel.org/stable/c/15102886bc8f5f29daaadf2d925591d564c17e9f> (patch)
- <https://git.kernel.org/stable/c/20255d41ac560397b6a07d8d87dcc5e2efc7672a> (patch)
- <https://git.kernel.org/stable/c/8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd> (patch)
- <https://git.kernel.org/stable/c/32a1777fd113335c3f70dc445dffee0ad1c6870f> (patch)
- <https://git.kernel.org/stable/c/619fee9eb13b5d29e4267cb394645608088c28a8> (patch)

## Sources

- CVE List: [CVE-2021-47150](https://www.cve.org/CVERecord?id=CVE-2021-47150), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47150](https://nvd.nist.gov/vuln/detail/CVE-2021-47150), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47150 · Whole record: https://cve.day/CVE-2021-47150.json · Rebuilt by cve.day 2026-11-25T22:58:08.689Z
