{"id":"CVE-2025-39872","published":"2025-09-23T06:00:45Z","modified":"2026-08-05T12:05:48Z","title":"hsr: hold rcu and dev lock for hsr_get_port_ndev","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhsr: hold rcu and dev lock for hsr_get_port_ndev\n\nhsr_get_port_ndev calls hsr_for_each_port, which need to hold rcu lock.\nOn the other hand, before return the port device, we need to hold the\ndevice reference to avoid UaF in the caller function.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00161,"percentile":0.0528,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9433ba79c2ec3ec7c9a711748701549339c3438c","tags":[]},{"url":"https://git.kernel.org/stable/c/68a6729afd3e8e9a2a32538642ce92b96ccf9b1d","tags":[]},{"url":"https://git.kernel.org/stable/c/847748fc66d08a89135a74e29362a66ba4e3ab15","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.06},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ef964411c8ca775967355d855abc56aeaca3c867, < 9433ba79c2ec3ec7c9a711748701549339c3438c",">= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, < 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d",">= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, < 847748fc66d08a89135a74e29362a66ba4e3ab15",">= 6.12.63, < 6.12.64"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2025-30859","exploited":false,"provenance":"source"}}