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

CVE-2021-47150
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 59d0f746564495c7f54526674deabfcf101236a1 < 15102886bc8f5f29daaadf2d925591d564c17e9f ; affected 59d0f746564495c7f54526674deabfcf101236a1 < 20255d41ac560397b6a07d8d87dcc5e2efc7672a ; affected 59d0f746564495c7f54526674deabfcf101236a1 < 8ee7ef4a57a9e1228b6f345aaa70aa8951c7e9cd ; affected 59d0f746564495c7f54526674deabfcf101236a1 < 32a1777fd113335c3f70dc445dffee0ad1c6870f ; affected 59d0f746564495c7f54526674deabfcf101236a1 < 619fee9eb13b5d29e4267cb394645608088c28a8
Linux · Linuxaffected 3.18 ; unaffected 0 < 3.18 ; unaffected 4.19.193 ≤ 4.19.* ; unaffected 5.4.124 ≤ 5.4.* ; unaffected 5.10.42 ≤ 5.10.* ; unaffected 5.12.9 ≤ 5.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD