CVE-2021-47150
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 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.13NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: fec: soluciona la posible pérdida de memoria en fec_enet_init() Si la memoria asignada para cbd_base falla, debería liberar la memoria asignada para las colas; de lo contrario, provoca una pérdida de memoria. Y si falla la memoria asignada para las colas, puede devolver un error directamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47150 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47150 changed 2026-06-17Public domain