CVE-2021-47150

net: fec: fix the potential memory leak in fec_enet_init()

State
Published
Severity
Not scored
Published
Mar 25, 2024
Updated
May 11, 2026
Reserved
Mar 4, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 59d0f746564495c7f54526674deabfcf101236a1 to before 15102886bc8f5f29daaadf2d925591d564c17e9fAffected
  • 59d0f746564495c7f54526674deabfcf101236a1 to before 20255d41ac560397b6a07d8d87dcc5e2efc7672aAffected
  • 59d0f746564495c7f54526674deabfcf101236a1 to before 8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cdAffected
  • 59d0f746564495c7f54526674deabfcf101236a1 to before 32a1777fd113335c3f70dc445dffee0ad1c6870fAffected
  • 59d0f746564495c7f54526674deabfcf101236a1 to before 619fee9eb13b5d29e4267cb394645608088c28a8Affected
LinuxLinux
  • 3.18Affected
  • before 3.18Not affected
  • 4.19.193 through 4.19.*Not affected
  • 5.4.124 through 5.4.*Not affected
  • 5.10.42 through 5.10.*Not affected
  • 5.12.9 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.