Bug 2397554 (CVE-2025-39872) - CVE-2025-39872 kernel: hsr: hold rcu and dev lock for hsr_get_port_ndev
Summary: CVE-2025-39872 kernel: hsr: hold rcu and dev lock for hsr_get_port_ndev
Keywords:
Status: NEW
Alias: CVE-2025-39872
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-23 07:01 UTC by OSIDB Bzimport
Modified: 2025-11-26 11:13 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-23 07:01:19 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.