Linux
hsr: hold rcu and dev lock for hsr_get_port_ndev
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ef964411c8ca775967355d855abc56aeaca3c867, < 9433ba79c2ec3ec7c9a711748701549339c3438c
- >= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, < 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d
- >= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, < 847748fc66d08a89135a74e29362a66ba4e3ab15
- >= 6.12.63, < 6.12.64
Fixed in 9433ba79c2ec3ec7c9a711748701549339c3438c, 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d, 847748fc66d08a89135a74e29362a66ba4e3ab15, 6.12.64
- 6.14
Fixed in 0, 6.12.64, 6.16.8, 6.17
Mitigation
Upgrade Linux to 9433ba79c2ec3ec7c9a711748701549339c3438c or 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d or 847748fc66d08a89135a74e29362a66ba4e3ab15 or 6.12.64 or later.
Upgrade Linux to 0 or 6.12.64 or 6.16.8 or 6.17 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.