CVE-2025-39964: Linux kernel AF_ALG concurrent-write race enabling local privilege escalation
- Vendors
- LinuxSiemens
CVE-2025-39964 is a race condition in the Linux kernel AF_ALG userspace cryptographic interface's af_alg_sendmsg() function. Although socket locking normally serializes operations, waiting for writable buffer space temporarily releases the lock, allowing unfinished writes to overlap on the same socket. Concurrent writers can leave ctx->merge set while the final transmit scatter-gather object contains no populated entries. A subsequent write then accesses scatterlist metadata before the array. Researchers converted this out-of-bounds access into an arbitrary kernel write and demonstrated root privilege escalation and Docker container escape. The vulnerable code originated in Linux 2.6.38; exposure depends on kernel configuration and vendor backports.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise host confidentiality, integrity, and availability through arbitrary kernel writes and local escalation to root. Researchers demonstrated execution of an attacker-controlled program as a root-privileged core-dump handler and escape from a Docker container to host root in a targeted kernelCTF environment. Concurrent writes can also corrupt socket state, disrupt cryptographic processing, or cause kernel crashes. Container escape depends on access to the vulnerable host-kernel interface and the environment. CISA has identified the vulnerability as exploited in the wild, but attackers and incident-specific techniques have not been publicly identified.
Mitigation
If you can’t patch tonight, do this now.
Where operationally feasible, prevent the AF_ALG module from loading until a patched kernel can be deployed, after evaluating application dependencies. A module-loading restriction alone does not address an already active or built-in interface. Restrict execution of untrusted local code and tenant workloads. Serialize writes to shared AF_ALG sockets in trusted applications to avoid triggering the race accidentally; application-level serialization does not protect against an attacker able to invoke the vulnerable interface directly. Preserve relevant telemetry and investigate suspicious privilege changes, container escapes, and kernel crashes on exposed systems.
Remediation
Patch, then assume compromise.
Install the distribution- or product-vendor kernel update addressing CVE-2025-39964, reboot into the corrected kernel, and verify the running kernel afterward. The upstream fix adds ctx->write to enforce exclusive writer ownership in af_alg_sendmsg(), rejecting another concurrent writer with -EBUSY. Fixed upstream stable releases include 5.10.246, 5.15.195, 6.1.155, 6.6.109, 6.12.50, and 6.16.10. Determine package status from the applicable vendor advisory because backported fixes may retain older upstream version numbers. Prioritize container hosts, multi-user systems, and infrastructure executing untrusted workloads.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-39964 exploited in the wild?
- Yes. As of Nov 10, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 18, 2026.
- Is there a public exploit for CVE-2025-39964?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-39964, the earliest disclosed Nov 13, 2025.
- Is there a patch for CVE-2025-39964?
- Install the distribution- or product-vendor kernel update addressing CVE-2025-39964, reboot into the corrected kernel, and verify the running kernel afterward. The upstream fix adds ctx->write to enforce exclusive writer ownership in af_alg_sendmsg(), rejecting another concurrent writer with -EBUSY.
- What products are affected by CVE-2025-39964?
- Linux Kernel, Siemens Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware, and Siemens Simatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmware.
- How severe is CVE-2025-39964?
- CVE-2025-39964 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 1.6% (76th percentile) as of Nov 10, 2026.
Recent activity
133 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.