Linux
net: shaper: protect late read accesses to the hierarchy
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb, < 581eee0890a8bde44f1fb78ad3e70502a897d583
- >= 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb, < 348758ba74e6a348299965b16a97cfb817545cc0
- >= 4b623f9f0f59652ea71fcb27d60b4c3b65126dbb, < 0f9ea7141f365b4f27226898e62220fb98ef8dc6
Fixed in 581eee0890a8bde44f1fb78ad3e70502a897d583, 348758ba74e6a348299965b16a97cfb817545cc0, 0f9ea7141f365b4f27226898e62220fb98ef8dc6
- 6.13
Fixed in 0, 6.18.20, 6.19.10, 7.0
Mitigation
Upgrade Linux to 581eee0890a8bde44f1fb78ad3e70502a897d583 or 348758ba74e6a348299965b16a97cfb817545cc0 or 0f9ea7141f365b4f27226898e62220fb98ef8dc6 or later.
Upgrade Linux to 0 or 6.18.20 or 6.19.10 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.