CVE-2026-98816

bpf: Fix overflow of jump offset in constant blinding

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

bpf: Fix overflow of jump offset in constant blinding

bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into:

AX = imm ^ rnd
AX ^= rnd
if rX op AX goto off

and subtracts 2 from off when the jump is backward. off is s16, so
-32767 and -32768 wrap and the jump goes 32767 insns forward, past the
end of the prog. The jump is inside the patch, hence bpf_adj_branches()
doesn't check it. The kernel crashes when such prog runs with
bpf_jit_harden=2.

Return -ERANGE in such case. bpf_jit_blind_constants() fails the same
way when blinding of other insns moves a jump out of range.

Analysis

AI-generated

Technical impact

The vulnerability originates in the Linux kernel's BPF JIT blind instruction handling, where rewriting an "if rX op imm goto off" constructs can overflow the signed 16‑bit offset field. A wrap‑around occurs when values below –32768 are used, causing the jump to leap past the end of the program. In hardened mode (bpf_jit_harden=2), this fault triggers a kernel crash rather than providing code execution or privilege escalation. The impact is a loss of kernel availability for the affected system.

Affected Systems

The flaw affects the Linux kernel wherever BPF JIT compilation with hardening is enabled. Specific version ranges are not listed, so any kernel builds that include this BPF code path are potentially vulnerable. The issue is tied to the BPF subsystem, not to particular distributions or kernel releases.

Risk and Exploitability

The CVSS score is 4.1 and the EPSS score is <1%, but the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to load a crafted BPF program, which typically requires root or capabilities such as CAP_SYS_ADMIN. The attack vector is therefore local or potentially remote if privilege escalation is achievable. The risk is moderate due to the requirement of BPF program injection and the fact that the flaw only causes a crash, not arbitrary code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that corrects bpf_jit_blind_insn overflow handling.
  • If a kernel update is not yet possible, disable BPF JIT hardening by writing "0" to /proc/sys/kernel/bpf_jit_harden to prevent the crash.
  • As a temporary precaution, avoid deploying BPF programs that use jumps with large offsets or rely on blinding logic; validate offsets before loading programs.

Generated by OpenCVE AI on October 24, 2026 at 01:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-191
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

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 constant blinding bpf_jit_blind_insn() rewrites 'if rX op imm goto off' into: AX = imm ^ rnd AX ^= rnd if rX op AX goto off and subtracts 2 from off when the jump is backward. off is s16, so -32767 and -32768 wrap and the jump goes 32767 insns forward, past the end of the prog. The jump is inside the patch, hence bpf_adj_branches() doesn't check it. The kernel crashes when such prog runs with bpf_jit_harden=2. Return -ERANGE in such case. bpf_jit_blind_constants() fails the same way when blinding of other insns moves a jump out of range.
Title bpf: Fix overflow of jump offset in constant blinding
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

  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:26 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM