CVE-2026-31737
JSON

5.5medium

net: ftgmac100: fix ring allocation unwind on open failure

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before 184b3a500d60ea48d1b176103cff1706c456edf3, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before 78da43320d9d6ed788147fb085184e4fc801f057, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before a7e1bf392acf11dc4209820fef75758f6e42bd65, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before 8a71911fc7eeea930153322bc1efc065db8cd97e, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before d45230081f19c280096241353c26b0de457de795, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before 8351d18989c8642fc53e2e12d94e42314a39b078, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before 82f86111f0704ab2ded11a2033bc6cf0be3e09ea, from d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e before c0fd0fe745f5e8c568d898cd1513d0083e46204a and 1 more
Not affected: before 4.12, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.134 up to 6.6.*, from 6.12.81 up to 6.12.*
CVE List
linux linux_kernelfrom 4.12 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.134, from 6.7 before 6.12.81, from 6.13 before 6.18.22, from 6.19 before 6.19.12, 7.0NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: ftgmac100: corregir el deshacer de la asignación de anillos en caso de fallo de apertura ftgmac100_alloc_rings() asigna rx_skbs, tx_skbs, rxdes, txdes y rx_scratch en etapas. En caso de fallos intermedios, devolvía -ENOMEM directamente, fugando recursos asignados anteriormente en la función. Reestructurar la ruta de fallo para usar etiquetas de deshacer locales por etapas y liberar los recursos asignados en orden inverso antes de devolver -ENOMEM. Esto coincide con el estilo común de limpieza de asignación de netdev.

References

https://git.kernel.org/stable/c/184b3a500d60ea48d1b176103cff1706c456edf3patch
https://git.kernel.org/stable/c/78da43320d9d6ed788147fb085184e4fc801f057patch
https://git.kernel.org/stable/c/a7e1bf392acf11dc4209820fef75758f6e42bd65patch
https://git.kernel.org/stable/c/8a71911fc7eeea930153322bc1efc065db8cd97epatch
https://git.kernel.org/stable/c/d45230081f19c280096241353c26b0de457de795patch
https://git.kernel.org/stable/c/8351d18989c8642fc53e2e12d94e42314a39b078patch
https://git.kernel.org/stable/c/82f86111f0704ab2ded11a2033bc6cf0be3e09eapatch
https://git.kernel.org/stable/c/c0fd0fe745f5e8c568d898cd1513d0083e46204apatch
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

Sources

SourceRecordLicence
CVE ListCVE-2026-31737 changed 2026-11-10CVE Terms of Use
NVDCVE-2026-31737 changed 2026-11-11Public domain