CVE-2025-39872

Source
https://cve.org/CVERecord?id=CVE-2025-39872
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39872.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39872
Aliases
Downstream
Published
2025-09-23T06:00:45.528Z
Modified
2026-01-14T18:42:43.274710Z
Summary
hsr: hold rcu and dev lock for hsr_get_port_ndev
Details

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

hsr: hold rcu and dev lock for hsrgetport_ndev

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39872.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ef964411c8ca775967355d855abc56aeaca3c867
Fixed
9433ba79c2ec3ec7c9a711748701549339c3438c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9c10dd8eed74de9e8adeb820939f8745cd566d4a
Fixed
68a6729afd3e8e9a2a32538642ce92b96ccf9b1d
Fixed
847748fc66d08a89135a74e29362a66ba4e3ab15

Affected versions

v6.*
v6.12.63
v6.13
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.16.1
v6.16.2
v6.16.3
v6.16.4
v6.16.5
v6.16.6
v6.16.7
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39872.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.64
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.16.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39872.json"