CVE-2026-139608

bpf: Bound the number of indirect jump edges in a program

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Bound the number of indirect jump edges in a program

Every gotox instruction gets its own copy of the jump table of the subprog
containing it, and each distinct target in that table is a CFG successor
of the instruction. The number of such edges is therefore the number of
gotox instructions times the number of distinct targets, and neither
factor is bounded by anything except the instruction limit.

What is expensive is a BPF prog whose gotox instructions are themselves
the targets, which makes the edge count quadratic. 1024 such gotox are
already ~1e6 edges and about 4s of CPU to load.

Bound the total across the program at BPF_COMPLEXITY_LIMIT_INSNS, aka
the limit on the number of instructions the verifier processes. Progs
with real switch statements are orders of magnitude below this.

This bounds the edges only. Building the jump table of a gotox costs the
number of entries of all insn array maps regardless of how many distinct
targets they hold, which a later patch addresses separately.

Analysis

AI-generated

Technical impact

A flaw in the Linux kernel’s BPF verifier allows programs containing many indirect jump edges to cause a quadratic build of the edge table, consuming excessive CPU time while loading. The verifier allocates one table per "gotox" instruction and populates it with all target entries, even if they are identical, so a program with 1,024 such jumps can generate about a million edges and require roughly four seconds of CPU during the verification phase. An attacker who can load a BPF program on a system with the unpatched kernel could exploit this to flood the system with load‑time CPU consumption, resulting in a denial of service that degrades system responsiveness.

Affected Systems

The vulnerability affects the Linux kernel on all platforms that run BPF code. No specific kernel versions are listed, so any kernel before the patch that introduces a limit on indirect jump edges is potentially vulnerable.

Risk and Exploitability

The CVSS score is 4.4, EPSS is unavailable, and the flaw is not in the CISA KEV catalog, so the formal risk assessment is limited. The attack likely requires local access to load a BPF program, or remote access if a service grants BPF program loading privileges. Based on the description, the vulnerability can be triggered when the verifier processes a BPF program with a large number of gotox instructions, causing the kernel to allocate a large edge table and spend several seconds verifying it. The resulting CPU spike can lead to denial of service for legitimate workloads during the verification period.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes the patch limiting indirect jump edges in BPF verifications.
  • If updating immediately is not possible, restrict the ability to load BPF programs to trusted users only, or disable BPF in the kernel configuration.
  • Monitor kernel load times and CPU usage for BPF programs; if an unusually long verification occurs, investigate the program source and consider blocking it.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Bound the number of indirect jump edges in a program Every gotox instruction gets its own copy of the jump table of the subprog containing it, and each distinct target in that table is a CFG successor of the instruction. The number of such edges is therefore the number of gotox instructions times the number of distinct targets, and neither factor is bounded by anything except the instruction limit. What is expensive is a BPF prog whose gotox instructions are themselves the targets, which makes the edge count quadratic. 1024 such gotox are already ~1e6 edges and about 4s of CPU to load. Bound the total across the program at BPF_COMPLEXITY_LIMIT_INSNS, aka the limit on the number of instructions the verifier processes. Progs with real switch statements are orders of magnitude below this. This bounds the edges only. Building the jump table of a gotox costs the number of entries of all insn array maps regardless of how many distinct targets they hold, which a later patch addresses separately.
Title bpf: Bound the number of indirect jump edges in a program
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

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
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM