CVE-2025-39872

hsr: hold rcu and dev lock for hsr_get_port_ndev

State
Published
Severity
7.8 High
Published
Sep 23, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ef964411c8ca775967355d855abc56aeaca3c867 to before 9433ba79c2ec3ec7c9a711748701549339c3438cAffected
  • 9c10dd8eed74de9e8adeb820939f8745cd566d4a to before 68a6729afd3e8e9a2a32538642ce92b96ccf9b1dAffected
  • 9c10dd8eed74de9e8adeb820939f8745cd566d4a to before 847748fc66d08a89135a74e29362a66ba4e3ab15Affected
  • 6.12.63 to before 6.12.64Affected
LinuxLinux
  • 6.14Affected
  • before 6.14Not affected
  • 6.12.64 through 6.12.*Not affected
  • 6.16.8 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.