# CVE-2026-64025: bpf, skmsg: fix verdict sk_data_ready racing with ktls rx

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 39% of CVEs (2026-11-30)
- Published: 2026-07-19T15:39:17.178Z
- Modified: 2026-10-30T13:19:28.260Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before d698bdba0f9969a6e390d1b1a9a3e283f1f174a7; from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before c9ea01768903ae47f210cd457af1dead6de7a9c3; from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before 7c8cf21bc4efb4af18d6096db3f8bd06d622251c; from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before 1861d369efd62d67796563bf3e01fc22e5626f8b; from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before 8a52139560f833c3975032e1f5762611e3a36d71; from ef5659280eb13e8ac31c296f58cfdfa1684ac06b before ddf8029623a1af20e984c040e89ff918158397ab; 5.10 (not affected: before 5.10; from 6.1.191 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.10 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/d698bdba0f9969a6e390d1b1a9a3e283f1f174a7>
- <https://git.kernel.org/stable/c/c9ea01768903ae47f210cd457af1dead6de7a9c3> (patch)
- <https://git.kernel.org/stable/c/7c8cf21bc4efb4af18d6096db3f8bd06d622251c> (patch)
- <https://git.kernel.org/stable/c/1861d369efd62d67796563bf3e01fc22e5626f8b> (patch)
- <https://git.kernel.org/stable/c/8a52139560f833c3975032e1f5762611e3a36d71> (patch)
- <https://git.kernel.org/stable/c/ddf8029623a1af20e984c040e89ff918158397ab> (patch)

## Sources

- CVE List: [CVE-2026-64025](https://www.cve.org/CVERecord?id=CVE-2026-64025), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-64025](https://nvd.nist.gov/vuln/detail/CVE-2026-64025), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-64025 · Whole record: https://cve.day/CVE-2026-64025.json · Rebuilt by cve.day 2026-11-25T22:59:28.938Z
