net: ftgmac100: fix ring allocation unwind on open failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e · < 8351d18989c8642fc53e2e12d94e42314a39b078| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ftgmac100: fix ring allocation unwind on open failure
ftgmac100_alloc_rings() allocates rx_skbs, tx_skbs, rxdes, txdes, and rx_scratch in stages. On intermediate failures it returned -ENOMEM directly, leaking resources allocated earlier in the function.
Rework the failure path to use staged local unwind labels and free allocated resources in reverse order before returning -ENOMEM. This matches common netdev allocation cleanup style.
From the CVE record · Linux
The Linux kernel’s ftgmac100 driver can leak resources when ring allocation fails partway through opening the network device. The input does not establish whether an attacker can trigger the failure or specify any access or user-interaction requirements.
Engineers running Linux kernels with the ftgmac100 driver should check their versions; affected versions are not specified.