CVE-2025-38717 Details
Description
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().
A race condition vulnerability has been identified in the Linux kernel's KCM (Kernel Connection Multiplexor) module. This issue arises when the 'kcm_unattach' and 'kcm_release' functions are executed simultaneously. The 'kcm_unattach' function does not properly check the 'tx_stopped' flag before queuing work, which can lead to a situation where 'kcm_unattach' is called between the 'cancel_work_sync' and 'unreserve_psock' operations in 'kcm_release'. As a result, 'kcm->tx_work' can be requeued just before the KCM socket is freed, causing a potential use-after-free scenario.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/52565a935213cd6a8662ddb8efe5b4219343a25d | kernel.org | Patch |
| https://git.kernel.org/stable/c/7275dc3bb8f91b23125ff3f47b6529935cf46152 | kernel.org | Patch |
| https://git.kernel.org/stable/c/798733ee5d5788b12e8a52db1519abc17e826f69 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.6, < 6.12.43 >= 6.13, < 6.15.11 >= 6.16, < 6.16.2 6.17 rc1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Sep 4, 2025 | New CVE Received | kernel.org |