{"id":"CVE-2025-38717","summary":"net: kcm: Fix race condition in kcm_unattach()","details":"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-\u003etx_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-\u003etx_work right before kcm gets freed in kcm_done().\n\nRemove kcm-\u003etx_stopped and replace it by the less\nerror-prone disable_work_sync().","modified":"2026-03-20T12:42:59.595963Z","published":"2025-09-04T15:33:11.686Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38717.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/52565a935213cd6a8662ddb8efe5b4219343a25d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7275dc3bb8f91b23125ff3f47b6529935cf46152"},{"type":"WEB","url":"https://git.kernel.org/stable/c/798733ee5d5788b12e8a52db1519abc17e826f69"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38717.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38717"},{"type":"PACKAGE","url":"https://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":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3"},{"fixed":"c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308"},{"fixed":"7275dc3bb8f91b23125ff3f47b6529935cf46152"},{"fixed":"798733ee5d5788b12e8a52db1519abc17e826f69"},{"fixed":"52565a935213cd6a8662ddb8efe5b4219343a25d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38717.json"}}],"schema_version":"1.7.5"}