CVE-2025-40176: Use-after-free in Linux kernel TLS asynchronous decryption
- Vendor
- Linux
CVE-2025-40176 is a memory-lifetime vulnerability in the Linux kernel TLS asynchronous decryption implementation. The tls_strp_msg_hold function clones the input socket buffer (skb) to retain references to memory used by decryption. If clone allocation fails, asynchronous decryption can continue without those references, resulting in use-after-free of the skb or writes into userspace memory after recv() has returned. The fix waits for all pending decryption requests when tls_strp_msg_hold fails.
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.
The vulnerability can cause socket-buffer use-after-free and delayed writes into userspace buffers after the receiving call has completed, potentially resulting in memory corruption, crashes, denial of service, or application data corruption. Reliable arbitrary code execution, privilege escalation, and information disclosure are not established by the available vulnerability-specific details.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific workaround is documented. Until patching, restrict untrusted local access and reduce exposure of services using the affected kernel TLS functionality where feasible; these measures are defense in depth, not substitutes for the kernel fix.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the fix that waits for all pending asynchronous decryptions when tls_strp_msg_hold fails, then reboot into the updated kernel. Fixed builds include RHEL 9.4 kernel 5.14.0-427.106.1.el9_4, RHEL 9.6 kernel 5.14.0-570.77.1.el9_6, RHEL 10.0 kernel 6.12.0-55.54.1.el10_0, SLES 15 SP6 kernel-default 6.4.0-150600.23.81.3, and SLES 15 SP7 kernel-default 6.4.0-150700.53.25.1. Use the corresponding fixed package or a later supported update for the exact distribution, kernel flavor, and support stream.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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-40176 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-40176 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-40176?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-40176.
- Is there a patch for CVE-2025-40176?
- Install a vendor-supported kernel update containing the fix that waits for all pending asynchronous decryptions when tls_strp_msg_hold fails, then reboot into the updated kernel. Fixed builds include RHEL 9.4 kernel 5.14.0-427.106.1.el9_4, RHEL 9.6 kernel 5.14.0-570.77.1.el9_6, RHEL 10.0 kernel 6.12.0-55.54.1.el10_0, SLES 15 SP6 kernel-default 6.4.0-150600.23.81.3, and SLES 15 SP7 kernel-default 6.4.0-150700.53.25.1.
- What products are affected by CVE-2025-40176?
- Linux Kernel.
- How severe is CVE-2025-40176?
- CVE-2025-40176 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 0.89% (57th percentile) as of Oct 25, 2026.
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.