net: kcm: Fix race condition in kcm_unattach()
In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.43, 6.15.11, 6.16.2
- CVEs
- CVE-2025-38717
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:48 UTC · Revision 1
Source evidence
net: kcm: Fix race condition in kcm_unattach()
core-osv · Original sourcePublished 4 Sept 2025, 15:33 UTC
In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().
osv:CVE-2025-38717
Kernel
Fixed versions: 6.12.43, 6.15.11, 6.16.2
Complete source record
{
"id": "66998e0010b6cbec08c510f2c5f768bffda74ffbf159544339bfccd7bc5d2979",
"url": "https://osv.dev/vulnerability/CVE-2025-38717",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: kcm: Fix race condition in kcm_unattach()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().",
"evidence": "osv:CVE-2025-38717",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.43",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.16.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-38717",
"aliases": [
"CVE-2025-38717"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "ab7ac4eb9832e32a09f4e8042705484d2fb0aad3"
},
{
"fixed": "c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308"
},
{
"fixed": "7275dc3bb8f91b23125ff3f47b6529935cf46152"
},
{
"fixed": "798733ee5d5788b12e8a52db1519abc17e826f69"
},
{
"fixed": "52565a935213cd6a8662ddb8efe5b4219343a25d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38717.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.6.0"
},
{
"fixed": "6.12.43"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.15.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.16.0"
},
{
"fixed": "6.16.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38717.json"
}
}
],
"modified": "2026-10-28T02:30:38.348814544Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/52565a935213cd6a8662ddb8efe5b4219343a25d",
"https://git.kernel.org/stable/c/7275dc3bb8f91b23125ff3f47b6529935cf46152",
"https://git.kernel.org/stable/c/798733ee5d5788b12e8a52db1519abc17e826f69",
"https://git.kernel.org/stable/c/c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38717.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38717",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38717.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38717",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505853,
"published_at": "2025-09-04T15:33:11.686+00:00"
}