CVE-2025-39872 Details
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.
A vulnerability in the Linux kernel's handling of High-availability Seamless Redundancy (HSR) port management has been addressed. The issue arose because the function 'hsr_get_port_ndev' did not properly manage locks, potentially leading to a use-after-free condition. The function 'hsr_for_each_port' requires the Read-Copy Update (RCU) lock to be held, but this was not done. Additionally, before returning the port device, a reference to the device needed to be held to prevent a use-after-free error in the calling function. This vulnerability affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/68a6729afd3e8e9a2a32538642ce92b96ccf9b1d | kernel.org | Patch |
| https://git.kernel.org/stable/c/847748fc66d08a89135a74e29362a66ba4e3ab15 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9433ba79c2ec3ec7c9a711748701549339c3438c | kernel.org |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.14, < 6.16.8 6.17 rc1 6.17 rc2 6.17 rc3 6.17 rc4 6.17 rc5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 8, 2026 | CVE Modified | kernel.org |
| Dec 12, 2025 | Initial Analysis | [email protected] |
| Sep 23, 2025 | New CVE Received | kernel.org |