net: shaper: protect late read accesses to the hierarchy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.206.19.107.0In 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.
From the CVE record · Linux
The Linux kernel’s network shaper Netlink operations can read a device’s hierarchy after looking up the device without checking whether it has since been unregistered. This can lead to unsafe late reads during Netlink operations; the input does not specify an attacker outcome, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels should check whether their kernel includes the fix; affected versions are not specified.