CVE-2021-47150Published Mar 25, 2024 · Mar 25Updated Jun 17
net: fec: fix the potential memory leak in fec_enet_init()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s FEC network driver can leak memory during initialization if allocation for cbd_base fails after memory has been allocated for queues. The input does not describe an attacker trigger, access requirements, or user interaction.
Engineers running the Linux kernel should check whether their version includes the fix; affected versions are not specified.