Linux Kernel High Severity Flaw (CVE-2025-39964)
CVE-2025-39964
High-severity Linux kernel flaw CVE-2025-39964 (CVSS 7.8) lets local attackers escalate privileges or crash systems. Patch now to mitigate risk.
Actively exploited in the wild - CVE-2025-39964 is a high-severity local privilege escalation in the Linux kernel crypto AF_ALG socket interface that lets a low-privileged local user corrupt kernel socket state and escalate privileges. Kernel fixes are shipping across major distributions; update your kernel package immediately.
Overview
The Linux kernel crypto subsystem exposes AF_ALG, a socket family that lets userspace programs hand data to kernel crypto implementations and read the results back. The bug lives in af_alg_sendmsg, the function that handles writes into an AF_ALG socket. Two concurrent writes to the same socket interleave their data unpredictably and corrupt the socket’s internal state. The upstream fix adds a ctx->write ownership field so only one writer can own the socket at a time; a second concurrent writer is rejected outright.
That state corruption matters because AF_ALG objects live in kernel memory and are reachable from any unprivileged process on the host. The CVSS vector (7.8, LOCAL / LOW / LOW / NONE) reflects the reality of this class: an attacker who already has a foothold, a container escape primitive, or a malicious local user can race the socket, corrupt kernel structures, and climb to root. No email click, no network exposure, no user interaction.
Impact
On affected kernels, a local attacker can:
- Corrupt AF_ALG socket state and read or write memory the process should not reach.
- Escalate from an unprivileged account to root, or break out of a container that shares the host kernel.
- Destabilize the crypto layer, causing crashes or silent data corruption in workloads that rely on AF_ALG (AF_ALG is used by OpenSSL’s
afalgengine, some VPN stacks, and certain offload paths).
Because CISA has added CVE-2025-39964 to the Known Exploited Vulnerabilities catalog, treat any unpatched host as compromised-adjacent, not merely at risk.
Remediation
- Patch the kernel. Update to the fixed build for your distribution (RHEL, Ubuntu, Debian, SUSE, and mainline all carry the
ctx->writefix). Reboot into the new kernel; a package install alone does not load it. - Verify the running kernel, not just the installed one:
uname -rafter reboot. - Mitigate if you cannot reboot now. Block AF_ALG for untrusted local users with
crypto_user/AF_ALG restrictions, or run workloads in hardened sandboxes that denysocket(AF_ALG, ...). This is a stopgap, not a fix. - Audit container hosts. On multi-tenant Kubernetes nodes, an unpatched host kernel is a shared-blast-radius problem.
Security Insight
CVE-2025-39964 is the third Linux kernel privilege escalation to hit CISA’s KEV catalog this cycle, following the root-access bug tracked as CVE-2026-31 and the CrackArmor AppArmor bypasses. The pattern is clear: kernel crypto and LSM subsystems, long treated as hardened plumbing, are now the attacker’s favorite local escalation surface because a single foothold anywhere on the host converts into root everywhere. Teams that postpone kernel reboots are not deferring a maintenance task; they are leaving confirmed exploitation paths open on every host in the fleet, as this week’s threat roundup makes plain.
Further Reading
Never miss a critical vulnerability
Get real-time security alerts delivered to your preferred platform.
Am I Affected by CVE-2025-39964?
Pick an ecosystem, paste your installed version, and we'll compare it against the fixed version published on OSV.dev. Browser-only — nothing is sent to a server.
Heuristic comparison only. Always cross-check against the vendor advisory before making patching decisions.
Public PoC References
Unverified third-party code
These repositories are publicly listed on GitHub and have not been audited by Yazoul Security. They may contain malware, backdoors, destructive payloads, or operational security risks (telemetry, exfiltration). Treat them as hostile binaries. Inspect source before execution. Run only in isolated, disposable lab environments (offline VM, no credentials, no production data).
Authorized use only. This information is provided for defensive research, detection engineering, and patch validation. Using exploit code against systems you do not own or do not have explicit written permission to test is illegal in most jurisdictions and violates Yazoul's terms of use.
| Repository | Stars |
|---|---|
| n1k0oowang/CVE-2025-39964_EXP CVE-2025-39964 EXP | ★ 2 |
Showing 1 of 1 known references. Source: nomi-sec/PoC-in-GitHub.
Related Advisories
Race in GPU in Google Chrome on Windows prior to 147.0.7727.117 allowed a remote attacker to potentially perform a sandbox escape via a crafted video file. (Chromium security severity: Medium)...
In the Linux kernel, the following vulnerability has been resolved: ipv6: account for fraggap on the paged allocation path In __ip6_append_data(), when the paged-allocation branch is taken (MSG_MORE...
In the Linux kernel, the following vulnerability has been resolved: netfilter: bridge: make ebt_snat ARP rewrite writable The ebtables SNAT target keeps the Ethernet source address rewrite behind sk...
In the Linux kernel, the following vulnerability has been resolved: tls: fix handling of zero-length records on the rx_list Each recvmsg() call must process either - only contiguous DATA records (a...
Other Linux Kernel Vulnerabilities
In the Linux kernel, the following vulnerability has been resolved: ipv6: account for fraggap on the paged allocation path In __ip6_append_data(), when the paged-allocation branch is taken (MSG_MORE...
In the Linux kernel, the following vulnerability has been resolved: netfilter: bridge: make ebt_snat ARP rewrite writable The ebtables SNAT target keeps the Ethernet source address rewrite behind sk...
Out of bounds read and write in V8 in Google Chrome prior to 149.0.7827.103 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page. (Chromium security severity: H...
Integer overflow in Blink in Google Chrome prior to 148.0.7778.96 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page. (Chromium security severity: Critical)...