{"id":"CVE-2025-38717","aliases":["CVE-2025-38717"],"related":[],"kind":"vulnerability","state":"published","title":"net: kcm: Fix race condition in kcm_unattach()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: kcm: Fix race condition in kcm_unattach()\n\nsyzbot found a race condition when kcm_unattach(psock)\nand kcm_release(kcm) are executed at the same time.\n\nkcm_unattach() is missing a check of the flag\nkcm->tx_stopped before calling queue_work().\n\nIf the kcm has a reserved psock, kcm_unattach() might get executed\nbetween cancel_work_sync() and unreserve_psock() in kcm_release(),\nrequeuing kcm->tx_work right before kcm gets freed in kcm_done().\n\nRemove kcm->tx_stopped and replace it by the less\nerror-prone disable_work_sync().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: kcm: Fix race condition in kcm_unattach()\n\nsyzbot found a race condition when kcm_unattach(psock)\nand kcm_release(kcm) are executed at the same time.\n\nkcm_unattach() is missing a check of the flag\nkcm->tx_stopped before calling queue_work().\n\nIf the kcm has a reserved psock, kcm_unattach() might get executed\nbetween cancel_work_sync() and unreserve_psock() in kcm_release(),\nrequeuing kcm->tx_work right before kcm gets freed in kcm_done().\n\nRemove kcm->tx_stopped and replace it by the less\nerror-prone disable_work_sync().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: kcm: Corrige condición de carrera en kcm_unattach()\n\nsyzbot encontró una condición de carrera cuando kcm_unattach(psock) y kcm_release(kcm) se ejecutan al mismo tiempo.\n\nA kcm_unattach() le falta una comprobación del flag kcm->tx_stopped antes de llamar a queue_work().\n\nSi el kcm tiene un psock reservado, kcm_unattach() podría ejecutarse entre cancel_work_sync() y unreserve_psock() en kcm_release(), volviendo a encolar kcm->tx_work justo antes de que kcm sea liberado en kcm_done().\n\nEliminar kcm->tx_stopped y reemplazarlo por el menos propenso a errores disable_work_sync().","source":"nvd"}],"published":"2025-09-04T15:33:11.686Z","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:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","fixed":"c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308","status":"affected"},{"type":"git","introduced":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","fixed":"7275dc3bb8f91b23125ff3f47b6529935cf46152","status":"affected"},{"type":"git","introduced":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","fixed":"798733ee5d5788b12e8a52db1519abc17e826f69","status":"affected"},{"type":"git","introduced":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","fixed":"52565a935213cd6a8662ddb8efe5b4219343a25d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","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":"4.6","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"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/c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7275dc3bb8f91b23125ff3f47b6529935cf46152","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/798733ee5d5788b12e8a52db1519abc17e826f69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/52565a935213cd6a8662ddb8efe5b4219343a25d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38717","url":"https://www.cve.org/CVERecord?id=CVE-2025-38717","licence":"CVE Terms of Use","modified":"2026-08-05T12:04:14.893Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38717","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38717","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.157Z","epss":{"score":0.0013,"percentile":0.02829,"date":"2026-12-01T12:00:22.000Z"}}