CVE-2026-139327

bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields

A BPF program can read the middle of a u64 field in struct bpf_tcp_sock:

tp = bpf_tcp_sock(listener);
/* +0x54 is in the middle of the u64 bytes_received */
unsigned hi = *(unsigned *)((char *)tp + 0x54);

bpf_tcp_sock_is_valid_access() allows this 4-byte read (the default case
only checks size == 4), but bpf_tcp_sock_convert_ctx_access() only knows
the field starts and has no idea how to handle such an offset. It emits
no instruction, cnt stays 0 and the fixup pass trips verifier_bug():

verifier bug: error during ctx access conversion (0)

Just disallow the narrower access by matching the whole u64 range of the
two fields, so it is turned down at check time:

invalid tcp_sock access off=84 size=4

Analysis

AI-generated

Technical impact

A BPF program can read a 32‑bit section of a 64‑bit field within the struct bpf_tcp_sock context. The verifier logic mistakenly allowed this narrow read, which caused an internal verifier bug and resulted in the program being rejected. This problem is classified as CWE‑125, an improper bounds checking issue, and it does not lead to a kernel crash or exposure of sensitive memory.

Affected Systems

All Linux kernel releases that expose the bpf_tcp_sock context to BPF programs are affected. The CVE description does not list specific kernel versions, so any kernel before the patch that permits such BPF programs is vulnerable.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalogue. Exploitation requires the ability to load a malicious BPF program, which normally demands privileged access or a policy that allows BPF injection. In practice, this vulnerability causes a denial of BPF functionality rather than a system compromise, so the risk is low to moderate.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that contains the verifier patch.
  • Restrict the ability to load BPF programs to trusted users or enforce CAP_SYS_ADMIN rights or equivalent policy controls.
  • Monitor kernel logs for messages about verifier bugs to detect attempts to load invalid BPF programs.

Generated by OpenCVE AI on December 1, 2026 at 11:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields A BPF program can read the middle of a u64 field in struct bpf_tcp_sock: tp = bpf_tcp_sock(listener); /* +0x54 is in the middle of the u64 bytes_received */ unsigned hi = *(unsigned *)((char *)tp + 0x54); bpf_tcp_sock_is_valid_access() allows this 4-byte read (the default case only checks size == 4), but bpf_tcp_sock_convert_ctx_access() only knows the field starts and has no idea how to handle such an offset. It emits no instruction, cnt stays 0 and the fixup pass trips verifier_bug(): verifier bug: error during ctx access conversion (0) Just disallow the narrower access by matching the whole u64 range of the two fields, so it is turned down at check time: invalid tcp_sock access off=84 size=4
Title bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM