# CVE-2026-23436: net: shaper: protect from late creation of hierarchy

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:21.280Z
- Modified: 2026-11-05T22:18:25.957Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.13.1 before 6.18.20; from 6.19 before 6.19.10; 6.13; 7.0

## References

- <https://git.kernel.org/stable/c/719f6784f918f9e32f3ff3b197f900e852223f9d> (patch)
- <https://git.kernel.org/stable/c/d22921727023e7852704965e935f4d1fc83a5ec9> (patch)
- <https://git.kernel.org/stable/c/d75ec7e8ba1979a1eb0b9211d94d749cdce849c8> (patch)

## Sources

- CVE List: [CVE-2026-23436](https://www.cve.org/CVERecord?id=CVE-2026-23436), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-23436](https://nvd.nist.gov/vuln/detail/CVE-2026-23436), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-23436 · Whole record: https://cve.day/CVE-2026-23436.json · Rebuilt by cve.day 2026-11-25T22:59:17.874Z
