What’s Vulnerable › Vulnerabilities

CVE-2025-39872: hsr: hold rcu and dev lock for hsr_get_port_ndev

Description

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.16.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-39872 or the next vulnerability affects your stack