critical · CVSS v3 6.5

CVE-2026-98627

CVE-2026-98627 is a critical flaw in the Linux kernel’s BPF subsystem that allows out‑of‑bounds packet pointer accesses due to incorrect dis

Overview

CVE-2026-98627 is a critical flaw in the Linux kernel’s BPF subsystem that allows out‑of‑bounds packet pointer accesses due to incorrect displacement handling. The vulnerability can be triggered by malicious BPF programs, potentially enabling memory corruption or privilege escalation. It was fixed by a kernel commit that corrected the pointer offset logic.

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Preserve packet pointer class displacement in regsafe() regsafe() maps packet pointer IDs between states and checks that each current register range is a subset of the corresponding explored register range. It does not, however, preserve the displacement between registers that share a packet pointer ID. This is unsound because packet range is shared by ID. A bounds check on one class member updates every member, and a later access can consume the range through another member. Commit 022ac0750883 ("bpf: use reg->var_off instead of reg->off for pointers") folded the fixed pointer offset into r64 and removed the old off equality check, so two individually narrower registers can prune even when their displacement has changed. The explored path can then license an out-of-bounds packet access on the pruned path. Require matching range bases for packet pointers with an ID. Together with the existing ID mapping, this preserves the displacement between members of each packet-pointer class without adding per-ID state. Packet pointers without an ID remain unaffected.

Impact

The flaw compromises the confidentiality, integrity, and availability of systems running vulnerable kernels. An attacker can read or write arbitrary kernel memory through crafted BPF programs, leading to privilege escalation or denial of service. Kernel developers and system administrators are directly impacted.

Remediation

Apply the latest kernel update that includes commit 022ac0750883. Verify that the kernel version is at least the patched release. If immediate update is not possible, disable BPF JIT or restrict BPF program loading using seccomp or kernel configuration options. Monitor for anomalous BPF activity and audit BPF program signatures.

Risk context

The vulnerability is rated critical with a CVSS v3 score of 6.5. While no EPSS data is available, the severity indicates a high risk to affected systems. Defenders should treat this as a high‑priority patching issue.

Affected products

  • Linux kernel
  • Ubuntu kernel
  • Red Hat kernel
  • Fedora kernel
  • Debian kernel
  • CentOS kernel
  • OpenSUSE kernel
  • Android kernel

Scores

Severity
critical
CVSS v2
9.4
CVSS v3
6.5
CVSS v4
—
EPSS
—

Linux BPF Kernel Out-of-bounds Privilege Escalation Critical Memory Corruption

← All CVEs