In the Linux kernel, the following vulnerability has been resolved:
net: kcm: Fix race condition in kcm_unattach()
syzbot found a race condition when kcmunattach(psock) and kcmrelease(kcm) are executed at the same time.
kcmunattach() is missing a check of the flag kcm->txstopped before calling queue_work().
If the kcm has a reserved psock, kcmunattach() might get executed between cancelworksync() and unreservepsock() in kcmrelease(), requeuing kcm->txwork right before kcm gets freed in kcm_done().
Remove kcm->txstopped and replace it by the less error-prone disablework_sync().
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "313087605873233646091626907144417470478",
"length": 757.0
},
"id": "CVE-2025-38717-01f1c88e",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52565a935213cd6a8662ddb8efe5b4219343a25d",
"target": {
"file": "net/kcm/kcmsock.c",
"function": "kcm_release"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "133035732051176480619273229440931666175",
"length": 443.0
},
"id": "CVE-2025-38717-4d4ff83a",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52565a935213cd6a8662ddb8efe5b4219343a25d",
"target": {
"file": "net/kcm/kcmsock.c",
"function": "psock_write_space"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"310297977842883367234487875221135768765",
"226963946917394522584739063658918339982",
"12589424078778538412282132370333322333",
"6399308048976032002212990636151605879"
]
},
"id": "CVE-2025-38717-ae808f69",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52565a935213cd6a8662ddb8efe5b4219343a25d",
"target": {
"file": "include/net/kcm.h"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"331797619234231195494862979907361156096",
"324609502047245309759499011065211987073",
"198454110125499147954216122650584305429",
"169456048142090447156968304800288909027",
"5480515033947492470883780253018149679",
"142506539176360764746745348353646600362",
"120047187009865346865924339251925424092",
"302325628934302456185745159509036594919",
"178760204457236987082761881540657540935",
"174126622699945615087365241729140373036",
"281352901511546643880021517940639237554",
"142573463496511935577115876701230537842"
]
},
"id": "CVE-2025-38717-b03a500a",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52565a935213cd6a8662ddb8efe5b4219343a25d",
"target": {
"file": "net/kcm/kcmsock.c"
}
}
]