CVE-2026-23437: net: shaper: protect late read accesses to the hierarchy
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: shaper: protect late read accesses to the 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.
This is not proper, a conversion from a ref to a locked netdev must include a liveness check (a check if the netdev hasn't been unregistered already). Fix the read cases (those under RCU). Writes needs a separate change to protect from creating the hierarchy after flush has already run.
The Linux kernel CVE team has assigned CVE-2026-23437 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb and fixed in 6.18.20 with commit 581eee0890a8bde44f1fb78ad3e70502a897d583 Issue introduced in 6.13 with commit 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb and fixed in 6.19.10 with commit 348758ba74e6a348299965b16a97cfb817545cc0 Issue introduced in 6.13 with commit 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb and fixed in 7.0-rc5 with commit 0f9ea7141f365b4f27226898e62220fb98ef8dc6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23437
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/shaper/shaper.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/581eee0890a8bde44f1fb78ad3e70502a897d583 https://git.kernel.org/stable/c/348758ba74e6a348299965b16a97cfb817545cc0 https://git.kernel.org/stable/c/0f9ea7141f365b4f27226898e62220fb98ef8dc6