hsr: hold rcu and dev lock for hsr_get_port_ndev
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 |
|
06.12.646.16.86.17In the Linux kernel, the following vulnerability has been resolved:
hsr: hold rcu and dev lock for hsr_get_port_ndev
hsr_get_port_ndev calls hsr_for_each_port, which need to hold rcu lock. On the other hand, before return the port device, we need to hold the device reference to avoid UaF in the caller function.
From the CVE record · Linux
The Linux kernel's hsr_get_port_ndev function can access HSR ports without the required RCU lock and return a port device without holding a device reference, creating a use-after-free risk. The input does not specify an attack path, whether authentication or user interaction is required, or whether access must be local or over a network.
Engineers running the Linux kernel should check affected versions; none are specified in the input.