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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-23T06:00:45.528Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ef964411c8ca775967355d855abc56aeaca3c867 before 9433ba79c2ec3ec7c9a711748701549339c3438c; from 9c10dd8eed74de9e8adeb820939f8745cd566d4a before 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d; from 9c10dd8eed74de9e8adeb820939f8745cd566d4a before 847748fc66d08a89135a74e29362a66ba4e3ab15; from 6.12.63 before 6.12.64; 6.14 (not affected: before 6.14; from 6.12.64 up to 6.12.*; from 6.16.8 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.14 before 6.16.8; 6.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9433ba79c2ec3ec7c9a711748701549339c3438c>
- <https://git.kernel.org/stable/c/68a6729afd3e8e9a2a32538642ce92b96ccf9b1d> (patch)
- <https://git.kernel.org/stable/c/847748fc66d08a89135a74e29362a66ba4e3ab15> (patch)

## Sources

- CVE List: [CVE-2025-39872](https://www.cve.org/CVERecord?id=CVE-2025-39872), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39872](https://nvd.nist.gov/vuln/detail/CVE-2025-39872), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39872 · Whole record: https://cve.day/CVE-2025-39872.json · Rebuilt by cve.day 2026-11-25T22:59:05.030Z
