Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2025-39872

hsr: hold rcu and dev lock for hsr_get_port_ndev

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • ef964411c8ca775967355d855abc56aeaca3c867 to < 9433ba79c2ec3ec7c9a711748701549339c3438caffected
  • 9c10dd8eed74de9e8adeb820939f8745cd566d4a to < 68a6729afd3e8e9a2a32538642ce92b96ccf9b1daffected
  • 9c10dd8eed74de9e8adeb820939f8745cd566d4a to < 847748fc66d08a89135a74e29362a66ba4e3ab15affected
  • 6.12.63 to < 6.12.64affected

Linux Linux

Default version status: affected

  • 6.14affected
  • 0 to < 6.14unaffected
  • 6.12.64 to ≤ 6.12.*unaffected
  • 6.16.8 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References