TL;DR — A flaw in the Linux kernel’s kernel-TLS (kTLS) receive path, CVE-2025-39682, is now being exploited in the wild and was added to CISA’s Known Exploited Vulnerabilities (KEV) catalog on 18 September 2026 with a federal patch deadline of 21 September 2026. The scoring is genuinely split: NVD rates it CVSS 9.8 (Critical) with a network vector, but the researchers who found it (STAR Labs) and Red Hat both rate it around 7.0–7.1 (High) — because the demonstrated bug is a use-after-free in tls_sw_recvmsg that a local, unprivileged attacker turns into root, and only on systems where kTLS is actually in use. It was quietly patched upstream back in September 2025; the news now is that attackers have started using it. There is no config toggle that fixes the flaw itself — you patch the kernel, or (if you don’t need kTLS) stop the module loading.
What Is the Linux Kernel kTLS Flaw (CVE-2025-39682)?
Kernel TLS (kTLS) is a Linux feature that offloads TLS record encryption and decryption into the kernel’s net/tls subsystem, so high-throughput services can move encrypted data without bouncing every record through userspace. It is opt-in: an application enables it with CONFIG_TLS compiled in and the TLS upper-layer protocol (ULP) attached to a TCP socket. Web servers, proxies and other data-movers use it for performance. CVE-2025-39682 is a bug in the receive side of that code — specifically in how tls_sw_recvmsg handles zero-length TLS records that have been queued on the socket’s rx_list.
The flaw itself is not new. It was reported to the Linux kernel security team by Billy Jheng Bing-Jhong and Muhammad Alifa Ramdhan of STAR Labs SG in August 2025 and quietly fixed upstream in September 2025 — the commit is described as “tls: fix handling of zero-length records on the rx_list.” What changed in September 2026 is that attackers began exploiting it, which is why it has now landed in CISA’s KEV catalog alongside two other Linux kernel bugs. This is the classic patch-gap story: the fix was available for a year, but unpatched long-term-support kernels are everywhere.
How the CVE-2025-39682 Exploit Works
In plain terms: kTLS is supposed to enforce that all the bytes handed back from a single recvmsg() call belong to one TLS record type (application data, handshake, alert, and so on). This bug lets a carefully-ordered sequence of records slip past that check, and in doing so corrupts an internal kernel structure — a classic use-after-free that a local attacker can steer into running code with kernel privileges.
The mechanism, per the STAR Labs advisory: when a zero-length decrypted record is processed, the receive loop sees copied == 0 and continues. On the next iteration, if the new record’s content type differs from the previous one, an error path incorrectly queues darg.skb — the stream parser’s anchor buffer — onto ctx->rx_list while zero-copy mode is still active. Queuing the anchor there is forbidden: it corrupts strp->anchor->frag_list and the anchor’s reference count, and the resulting dangling reference is later used after it has been freed. The trigger is a specific ordering — an application-data record, then a zero-length handshake record, then another application-data record — with the victim application partially reading the first record before its next recvmsg().
The demonstrated impact is local privilege escalation to root. This is not a remote “send a packet, get a shell” bug; the attacker needs to be a local, unprivileged user on a host that is actively using kTLS, and needs to drive the socket into the vulnerable state. ZeroDayHub is not publishing a working exploit — the researcher advisory documents the root cause and KASAN evidence for defenders; the responsible action is to patch and to watch for the signals below.
# Signals to hunt around a Linux host that uses kernel TLS (kTLS)
- Unprivileged processes opening TLS ULP sockets they don't normally use
- Kernel oops / KASAN "use-after-free" reports in net/tls (tls_sw_recvmsg)
- Unexpected root-owned processes spawned from unprivileged parents
- Local accounts probing kTLS-enabled services with malformed record streams
- Crashes clustered around socket close on kTLS-enabled workloads
Impact Nuance: Why the Scores Disagree (9.8 vs 7.0)
This one deserves honesty rather than a scary round number. NVD lists CVE-2025-39682 as CVSS 9.8 Critical with a fully-remote vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) and classifies the weakness as CWE-754 (Improper Check for Unusual or Exceptional Conditions). That is the headline number you will see quoted in aggregators. But the people closest to the bug tell a more grounded story: the STAR Labs researchers rate it CVSS 7.1 and Red Hat rates it 7.0 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H), both treating it as a High-severity local use-after-free leading to privilege escalation, not an unauthenticated network RCE.
The gap matters for prioritisation. A true 9.8 “anyone on the network can own the box” flaw and a High-severity “a local user can become root, if kTLS is in use” flaw call for different urgency. The realistic reading here is the second: exposure is limited to systems that actually use kTLS (CONFIG_TLS attached to sockets), and the attacker needs local access first. That is still serious — local privilege escalation is the standard next step after an initial foothold, and it is now being exploited — but it is not the drop-everything-internet-facing panic that a literal 9.8 implies. Where ZeroDayHub can only pick one accent, we’ve gone with the vendor-and-researcher High, and shown all three numbers on the card so you can judge for yourself.
The fix shipped a year ago. The vulnerability is the unpatched kernel that has been running untouched ever since — the exploit just arrived to meet it.
Active Exploitation of CVE-2025-39682
The exploitation is what pushed this year-old patch back into the headlines. On 18 September 2026, CISA added CVE-2025-39682 to its Known Exploited Vulnerabilities catalog — part of a batch of three Linux kernel flaws flagged as exploited in the wild, the others being CVE-2026-53266 (an ebtables SNAT/ARP out-of-bounds write, CVSS 8.8) and CVE-2025-39964 (an AF_ALG race condition, CVSS 7.8). CISA set a federal civilian remediation deadline of 21 September 2026 under its Binding Operational Directive.
The following day, 19 September 2026, Red Hat published advisories acknowledging active exploitation and shipping fixed kernels for its distributions. No public proof-of-concept has been released and the activity has not been attributed to a named threat actor at the time of writing. As always with local privilege escalation, treat this as the second stage of an intrusion, not the first: it is the tool an attacker reaches for once they already have a shell, to go from a compromised service account to full control of the host.
Remediation & Mitigation: Patching the kTLS Use-After-Free
Update the kernel. The flaw was fixed upstream in September 2025, so the fix is already in current stable trees. Upgrade to at least one of the fixed maintenance releases — and, in practice, take whatever your distribution ships, because vendors backport the fix to their own kernel builds:
- 6.1.x → 6.1.149 or later
- 6.6.x → 6.6.103 or later
- 6.12.x → 6.12.44 or later
- 6.16.x → 6.16.4 or later
- 6.17 and later contain the fix
For enterprise distributions, apply the vendor kernel update (for example, Red Hat’s advisories of 19 September 2026) rather than tracking upstream version numbers. Remember a kernel patch requires a reboot (or a live-patch service) to take effect — an installed-but-not-booted kernel is still vulnerable. Reduce exposure while you schedule that reboot:
- If you don’t use kTLS, prevent the module from loading. Red Hat’s documented mitigation is to blacklist the
tlsmodule so the vulnerable code path is never reachable. Only do this where kTLS is genuinely unused — some services rely on it for performance, so confirm first. - Tighten local access. Because this needs a local foothold, the usual hardening applies: minimise interactive/shell access, restrict who can run untrusted code, and prioritise patching on multi-tenant and shared hosts where untrusted local users are a real threat.
If you find evidence of exploitation, treat it as a full host compromise. Privilege escalation to root means the attacker can install persistence, tamper with logs and pivot. Hunt for kernel oops/KASAN reports in net/tls, unexpected root processes descended from unprivileged accounts, and new persistence mechanisms; rotate credentials and secrets stored on or reachable from the host; and rebuild from a trusted image where root compromise is confirmed.
Related ZeroDayHub Coverage
Local privilege escalation keeps proving that “only High severity” is not the same as “only a minor problem” — these are the bugs that turn a foothold into ownership. See our coverage of the Windows ALPC elevation-of-privilege flaw (CVE-2026-85880), another KEV-listed local EoP under active attack, and the MikroTik RouterOS SSH privilege escalation (CVE-2026-86060). The recurring lesson: attackers chain a modest initial access with a privilege-escalation primitive, and the kernel is the richest hunting ground for the second half of that chain.
Sources & Further Reading
- STAR Labs advisory — CVE-2025-39682: net/tls use-after-free in tls_sw_recvmsg leading to privilege escalation (root cause, PoC record sequence, CVSS 7.1)
- Red Hat — CVE-2025-39682 (CVSS 7.0, kTLS mitigation via module blacklist, affected products)
- The Hacker News — CISA flags three Linux kernel vulnerabilities exploited in the wild (KEV dates, deadline)
- CIRCL / NVD data — CVE-2025-39682 (CVSS 9.8, CWE-754, affected and fixed kernel versions)
- NVD — CVE-2025-39682 detail record
- CISA — Known Exploited Vulnerabilities Catalog
ZeroDayHub reports on vulnerabilities for defensive purposes only. This article summarises the publicly-documented root cause but deliberately omits a working exploit while patching is in progress.





Leave a Reply