Local kernel memory corruption via KCM teardown race
Published Sep 4, 2025 · Updated Aug 5, 2026
Use-after-free in Linux kernel KCM allows local users to corrupt kernel memory by racing transport unattachment with socket release. kcm_unattach() can queue tx_work after kcm_release() cancels work but before it clears the reserved psock, leaving work queued on a kcm_sock freed by kcm_done(). An unprivileged local process can repeatedly drive the AF_KCM attach, unattach, and close sequence, causing kernel memory corruption or a system crash without user interaction.
Summary
What happened
Use-after-free in Linux kernel KCM allows local users to corrupt kernel memory by racing transport unattachment with socket release. kcm_unattach() can queue tx_work after kcm_release() cancels work but before it clears the reserved psock, leaving work queued on a kcm_sock freed by kcm_done(). An unprivileged local process can repeatedly drive the AF_KCM attach, unattach, and close sequence, causing kernel memory corruption or a system crash without user interaction.
The record
- CVE
- CVE-2025-38717
- Published
- Sep 4, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 4, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.6
- Affected versionversion=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <52565a935213cd6a8662ddb8efe5b4219343a25d
- Affected versionversion=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <7275dc3bb8f91b23125ff3f47b6529935cf46152
- Affected versionversion=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <798733ee5d5788b12e8a52db1519abc17e826f69
- Affected versionversion=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo