ZeroHour

CVE-2026-80738

mass

Type-confusion flaw in Linux kernel BPF TCP SYN cookie helpers

CVSS 3.1
7.3 high
EPSS
<1%p2
Published
()
Modified
AI analysis

In the Linux kernel's BPF subsystem, the helper functions bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer typed as a generic 'sock_common' but read sk->sk_protocol without first verifying that the pointer is a full socket rather than a mini-socket (request_sock), causing fullsock-specific fields to be dereferenced on the wrong structure. The flaw is triggered when a loaded BPF program (for example an XDP/TC or socket-lookup program using the TCP SYN cookie helpers) passes a socket handle for a connection in the SYN-acknowledged/mini-socket state into these helpers, leading to an invalid memory access in kernel context. An attacker able to drive traffic through such a BPF program can potentially crash the kernel (denial of service) or cause kernel memory exposure/corruption; the CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N) rates confidentiality and integrity impact high and availability impact low, for a 7.3 (High) score. Affected are systems running Linux kernels that include these BPF helpers, particularly hosts running BPF programs that call them; no specific vulnerable or fixed version ranges were provided in the source data. Exploitation status: no public proof-of-concept is known, the flaw is not in CISA KEV, and EPSS puts 30-day exploitation probability at 0.1% (2nd percentile), so it is not known to be exploited in the wild.

What to do: Apply the mainline kernel patch for CVE-2026-80738 when it is incorporated into your distribution's stable kernel updates (no fixed version numbers were provided in the source data, so track your vendor's advisory). As an interim measure, inventory hosts running BPF programs that call bpf_tcp_gen_syncookie or bpf_tcp_check_syncookie (e.g., XDP/TC SYN-cookie or socket-lookup programs) and prioritize them for patching or temporarily unload those programs; no other workaround is described in the available data.

Affected
Linux kernel (BPF subsystem, bpf_tcp_gen_syncookie / bpf_tcp_check_syncookie helpers)
Estimated exposure
massbillions of Linux systems ship the affected kernel code (servers, cloud instances and Android devices), though only hosts running BPF programs that call these… — The Linux kernel runs on effectively all Linux servers, cloud hosts and billions of Android devices, but the vulnerable code path is only reachable on systems with loaded BPF programs using bpf_tcp_gen_syncookie/bpf_tcp_check_syncookie,…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer 'sk' with argument type ARG_PTR_TO_BTF_ID_SOCK_COMMON. However, they access sk->sk_protocol without validating whether 'sk' represents a full socket. Fix this issue by checking sk->sk_state != TCP_LISTEN before inspecting sk->sk_protocol in both bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie. Since mini-sockets are never in the TCP_LISTEN state, the condition short-circuits and prevents dereferencing fullsock-specific fields.

Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

In the news

No ingested article mentions this CVE yet.