CVE-2025-39872
hsr: hold rcu and dev lock for hsr_get_port_ndev
CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown
cve-program · CVE-2025-39872
PublishedIn 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-39872 · CVE overview and exploitation status
cve-program · CVE-2025-39872
Related changes
Linked by CVE identifierNo related changes are available here.