← All Advisories
Reported from OT-Advisories.com as of

Linux Kernel BPF sockmap Verdict Data-Ready Handler Drains the TCP Receive Queue Without Advancing copied_seq When kTLS RX Is Active, Causing Use-After-Free in TLS Decryption

Last refreshed2026-11-19

Status: UPDATED  |  Advisory ID: CVE-2026-64025

Key Details

CVECVE-2026-64025
CVSS Score / Version
9.8 (Critical) / CVSS v3.1
Updated2026-10-13
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is network; attack complexity is low; privileges required is none; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Linux Kernel
Classified as
CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'))
Exploitation prediction (EPSS)
0.45% probability of exploitation in the next 30 days (40% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

In the Linux kernel, the following vulnerability has been resolved:

bpf, skmsg: fix verdict sk_data_ready racing with ktls rx

sk_psock_strp_data_ready() already checks tls_sw_has_ctx_rx() and

defers to psock->saved_data_ready when a TLS RX context is present,

avoiding a conflict with the TLS strparser's ownership of the receive

queue (commit e91de6afa81c, "bpf: Fix running sk_skb program types

with ktls").

sk_psock_verdict_data_ready() has no equivalent guard. When a socket

is inserted into a sockmap (BPF_SK_SKB_VERDICT) before TLS RX is

configured, tls_sw_strparser_arm() saves sk_psock_verdict_data_ready

as rx_ctx->saved_data_ready. On data arrival:

tls_data_ready -> tls_strp_data_ready -> tls_rx_msg_ready

-> saved_data_ready() = sk_psock_verdict_data_ready()

-> tcp_read_skb() drains sk_receive_queue via __skb_unlink()

without calling tcp_eat_skb(), so copied_seq is not advanced.

tls_strp_msg_load() then finds tcp_inq() >= full_len (stale), calls

tcp_recv_skb() on the now-empty queue, hits WARN_ON_ONCE(!first), and

returns with rx_ctx->strp.anchor.frag_list pointing at a psock-owned

(potentially freed) skb. tls_decrypt_sg() subsequently walks that

frag_list: use-after-free.

Apply the same fix as sk_psock_strp_data_ready(): if a TLS RX context

is present, call psock->saved_data_ready (sock_def_readable) to wake

recv() waiters and return immediately, leaving the receive queue

untouched. TLS retains sole ownership of the queue and decrypts the

record normally through tls_sw_recvmsg(). (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-64025
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-64025
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.