{"id":"CVE-2025-39872","aliases":["CVE-2025-39872"],"related":[],"kind":"vulnerability","state":"published","title":"hsr: hold rcu and dev lock for hsr_get_port_ndev","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nhsr: mantener los bloqueos rcu y dev para hsr_get_port_ndev\n\nhsr_get_port_ndev llama a hsr_for_each_port, que necesita mantener el bloqueo rcu.\nPor otro lado, antes de devolver el dispositivo de puerto, necesitamos mantener la referencia del dispositivo para evitar UaF en la función llamadora.","source":"nvd"}],"published":"2025-09-23T06:00:45.528Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ef964411c8ca775967355d855abc56aeaca3c867","fixed":"9433ba79c2ec3ec7c9a711748701549339c3438c","status":"affected"},{"type":"git","introduced":"9c10dd8eed74de9e8adeb820939f8745cd566d4a","fixed":"68a6729afd3e8e9a2a32538642ce92b96ccf9b1d","status":"affected"},{"type":"git","introduced":"9c10dd8eed74de9e8adeb820939f8745cd566d4a","fixed":"847748fc66d08a89135a74e29362a66ba4e3ab15","status":"affected"},{"type":"semver","introduced":"6.12.63","fixed":"6.12.64","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.12.64","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.8","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9433ba79c2ec3ec7c9a711748701549339c3438c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68a6729afd3e8e9a2a32538642ce92b96ccf9b1d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/847748fc66d08a89135a74e29362a66ba4e3ab15","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39872","url":"https://www.cve.org/CVERecord?id=CVE-2025-39872","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:48.806Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39872","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39872","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.030Z","epss":{"score":0.00161,"percentile":0.05535,"date":"2026-12-01T12:00:22.000Z"}}