CVE-2026-23436
JSON

5.5medium

net: shaper: protect from late creation of hierarchy

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (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: shaper: protect from late creation of hierarchy We look up a netdev during prep of Netlink ops (pre- callbacks) and take a ref to it. Then later in the body of the callback we take its lock or RCU which are the actual protections. The netdev may get unregistered in between the time we take the ref and the time we lock it. We may allocate the hierarchy after flush has already run, which would lead to a leak. Take the instance lock in pre- already, this saves us from the race and removes the need for dedicated lock/unlock callbacks completely. After all, if there's any chance of write happening concurrently with the flush - we're back to leaking the hierarchy. We may take the lock for devices which don't support shapers but we're only dealing with SET operations here, not taking the lock would be optimizing for an error case.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 93954b40f6a4fc43226c01a15b02732f884500f1 before 719f6784f918f9e32f3ff3b197f900e852223f9d, from 93954b40f6a4fc43226c01a15b02732f884500f1 before d22921727023e7852704965e935f4d1fc83a5ec9, from 93954b40f6a4fc43226c01a15b02732f884500f1 before d75ec7e8ba1979a1eb0b9211d94d749cdce849c8, 6.13
Not affected: before 6.13, from 6.18.20 up to 6.18.*, from 6.19.10 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.13.1 before 6.18.20, from 6.19 before 6.19.10, 6.13, 7.0NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: shaper: protect from late creation of hierarchy We look up a netdev during prep of Netlink ops (pre- callbacks) and take a ref to it. Then later in the body of the callback we take its lock or RCU which are the actual protections. The netdev may get unregistered in between the time we take the ref and the time we lock it. We may allocate the hierarchy after flush has already run, which would lead to a leak. Take the instance lock in pre- already, this saves us from the race and removes the need for dedicated lock/unlock callbacks completely. After all, if there's any chance of write happening concurrently with the flush - we're back to leaking the hierarchy. We may take the lock for devices which don't support shapers but we're only dealing with SET operations here, not taking the lock would be optimizing for an error case.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: shaper: proteger de la creación tardía de la jerarquía Buscamos un netdev durante la preparación de las operaciones de Netlink (callbacks previos) y tomamos una referencia a él. Luego, más tarde, en el cuerpo del callback, tomamos su bloqueo o RCU, que son las protecciones reales. El netdev puede ser dado de baja entre el momento en que tomamos la referencia y el momento en que lo bloqueamos. Podemos asignar la jerarquía después de que el vaciado ya se haya ejecutado, lo que llevaría a una fuga. Tomar el bloqueo de instancia ya en pre-, esto nos salva de la condición de carrera y elimina por completo la necesidad de callbacks dedicados de bloqueo/desbloqueo. Después de todo, si hay alguna posibilidad de que una escritura ocurra concurrentemente con el vaciado, volvemos a la fuga de la jerarquía. Podemos tomar el bloqueo para dispositivos que no soportan shapers, pero aquí solo estamos tratando con operaciones SET; no tomar el bloqueo sería optimizar para un caso de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23436 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-23436 changed 2026-11-05Public domain