Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < 184b3a500d60ea48d1b176103cff1706c456edf3affectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < 78da43320d9d6ed788147fb085184e4fc801f057affectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < a7e1bf392acf11dc4209820fef75758f6e42bd65affectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < 8a71911fc7eeea930153322bc1efc065db8cd97eaffectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < d45230081f19c280096241353c26b0de457de795affectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < 8351d18989c8642fc53e2e12d94e42314a39b078affectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < 82f86111f0704ab2ded11a2033bc6cf0be3e09eaaffectedd72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e to < c0fd0fe745f5e8c568d898cd1513d0083e46204aaffected
Linux Linux
Default version status: affected
4.12affected0 to < 4.12unaffected5.10.253 to ≤ 5.10.*unaffected5.15.203 to ≤ 5.15.*unaffected6.1.168 to ≤ 6.1.*unaffected6.6.134 to ≤ 6.6.*unaffected6.12.81 to ≤ 6.12.*unaffected6.18.22 to ≤ 6.18.*unaffected6.19.12 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/184b3a500d60ea48d1b176103cff1706c456edf3 ↗
- https://git.kernel.org/stable/c/78da43320d9d6ed788147fb085184e4fc801f057 ↗
- https://git.kernel.org/stable/c/a7e1bf392acf11dc4209820fef75758f6e42bd65 ↗
- https://git.kernel.org/stable/c/8a71911fc7eeea930153322bc1efc065db8cd97e ↗
- https://git.kernel.org/stable/c/d45230081f19c280096241353c26b0de457de795 ↗
- https://git.kernel.org/stable/c/8351d18989c8642fc53e2e12d94e42314a39b078 ↗
- https://git.kernel.org/stable/c/82f86111f0704ab2ded11a2033bc6cf0be3e09ea ↗
- https://git.kernel.org/stable/c/c0fd0fe745f5e8c568d898cd1513d0083e46204a ↗
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html ↗
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html ↗
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html ↗