Skip to main content
Mallory
MediumExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-39964: Linux kernel AF_ALG concurrent-write race enabling local privilege escalation

Published Oct 13, 2025 · Updated 7 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS5.5Medium · v3.1
EPSS1.6%76th percentile
CISA KEVYesAdded Sep 18, 2026
In the wildActivePer CISA KEV
Vendors
LinuxSiemens
IdentifiersCVE-2025-39964CWE-366

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
SiemensSimatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmwareoperating_system
SiemensSimatic S7-1500 Cpu 1518f-4 Pn/Dp Mfp Firmwareoperating_system
FAQ

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.
Activity feed

Recent activity

133 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Oct 27, 2026MiracleLinux 9 : kernel-5.14.0-687.50.1.el9_8 (AXSA:2026-2164:... | Tenable®Listed in a MIRACLE Linux 9 kernel-package advisory with a patch publication date of October 27, 2026. Technical details are not provided. The advisory states that exploits are available and supplies a CISA KEV due date, but does not identify which listed CVEs those statements concern.Read more ↗tenable nessus pluginsNews · Oct 16, 2026CentOS Linux 7 [TuxCare] Security Update: bpftool / kernel / k... | Tenable®Included in the CentOS 7 security update CLSA-2026-1791730242. Specific flaw details and individual exploitation status are not provided.Read more ↗tenable nessus pluginsNews · Oct 12, 2026TencentOS Server 2: kernel (TSSA-2026:1156) | Tenable®A Linux kernel AF_ALG cryptographic socket flaw permits concurrent writes to the same socket, causing unpredictable data interleaving and potentially inconsistent internal state. The fix introduces exclusive write ownership. The supplied CVSS assessment indicates functional exploit availability. The plugin also lists a CISA Known Exploited Vulnerability due date, but does not explicitly identify which of its four CVEs that date applies to.Read more ↗tenable nessus pluginsNews · Oct 12, 2026TencentOS Server 3: kernel (TSSA-2026:1155) | Tenable®Concurrent writes to the same Linux kernel AF_ALG socket can unpredictably interleave data and create inconsistent internal socket state. The fix adds exclusive write ownership. The plugin reports available exploits and a CISA Known Exploited Vulnerability due date at the advisory level, but does not explicitly attribute those statements to an individual CVE.Read more ↗
+50 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity58Community discussion across Reddit, Mastodon, and other social sources.