CVE-2026-139622

bpf: Fix overflow of jump offset in may_goto expansion

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 overflow of jump offset in may_goto expansion

may_goto is expanded into 'if AX == 0 goto off + 5' when it's timed,
off + 2 when it's not and off - 1 when it jumps backward. The sum is
stored into 16-bit off without a range check, so may_goto +32763
turns into:

if r12 == 0x0 goto pc-32768

and the prog jumps backward when may_goto expires.

Emit 'if AX != 0 goto +1; gotol' when the offset doesn't fit and
compute the offset from the number of insns in the expansion.
JITs that don't support gotol will reject such prog.

Analysis

AI-generated

Technical impact

A 16‑bit jump offset in the BPF "may_goto" expansion is calculated without a range check. When the offset exceeds 32763, the off field wraps around, causing a backward jump that is not intended. This control‑flow corruption can lead to a crash or infinite loop in kernel BPF execution, resulting in a denial of service. The weakness is an integer overflow in the jump calculation.

Affected Systems

Any Linux kernel that accepts BPF programs before the 2026-139622 fix, regardless of distribution, is impacted. The exact kernel versions are not listed, so all pre‑patch kernels are considered vulnerable.

Risk and Exploitability

The CVSS score is not provided, but the vulnerability executes in kernel space and could be triggered by privileged processes or malicious users crafting BPF bytecode. Because the exploit requires constructing a BPF program that triggers the overflow, the attack vector is likely local, but could be leveraged by any process with the ability to load custom BPF. EPSS data is unavailable, and the vulnerability is not listed in the KEV catalog, so the current public exploitation probability is unknown. Nevertheless, the potential impact warrants prompt patching to avoid a kernel crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest released version that contains the bpf: Fix overflow of jump offset in may_goto expansion patch.
  • Configure BPF to use a verified JIT engine that rejects programs containing a "gotol" instruction, thereby preventing execution of malformed jump offsets.
  • Restrict or disable BPF loading for untrusted applications, for example by setting the sysctl net.core.bpf_jit_enable to 0 or by using seccomp/bpf rules to block the may_goto instruction.

Generated by OpenCVE AI on November 30, 2026 at 23:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in may_goto expansion may_goto is expanded into 'if AX == 0 goto off + 5' when it's timed, off + 2 when it's not and off - 1 when it jumps backward. The sum is stored into 16-bit off without a range check, so may_goto +32763 turns into: if r12 == 0x0 goto pc-32768 and the prog jumps backward when may_goto expires. Emit 'if AX != 0 goto +1; gotol' when the offset doesn't fit and compute the offset from the number of insns in the expansion. JITs that don't support gotol will reject such prog.
Title bpf: Fix overflow of jump offset in may_goto expansion
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

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