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

Published Sep 23, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

hsr: hold rcu and dev lock for hsrgetportndev

hsrgetportndev calls hsrforeachport, 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 Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=6.14<6.16.8
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Linux Linux kernel=6.17-rc5

Event History

Sep 23, 2025
CVE Published
via MITRE·06:00 AM
Data Sourced
via MITRE·06:00 AM
DescriptionSeverity
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39872?

CVE-2025-39872 has been classified with a moderate severity level due to the potential impact on system stability.

2

How do I fix CVE-2025-39872?

To fix CVE-2025-39872, you should update to the latest version of the Linux kernel that contains the security patch.

3

What systems are affected by CVE-2025-39872?

CVE-2025-39872 affects various versions of the Linux kernel.

4

What does CVE-2025-39872 exploit?

CVE-2025-39872 exploits a race condition in the hsr_get_port_ndev function, which may lead to improper handling of device references.

5

When was CVE-2025-39872 first reported?

CVE-2025-39872 was first reported in 2025 and addressed in subsequent kernel updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203