---
id: "CVE-2026-98627"
kind: "vulnerability"
aliases: ["CVE-2026-98627"]
title: "Linux kernel BPF verifier: packet pointer displacement check can allow out-of-bounds access"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["bpf", "linux-kernel", "runtime", "self-hosted"]
not_affected_if: ["unprivileged-bpf-disabled"]
published_at: "2026-10-18T16:17:15+00:00"
first_seen_at: "2026-10-23T21:57:16+00:00"
updated_at: "2026-10-25T05:21:09+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98627", "first_seen_at": "2026-10-23T21:57:16+00:00"}]
---

# Linux kernel BPF verifier: packet pointer displacement check can allow out-of-bounds access

The Linux kernel BPF verifier fails to preserve pointer displacement between registers sharing a packet pointer ID during state pruning. A crafted BPF program could then perform an out-of-bounds packet memory access.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `uname -r` and compare against the fixed kernel versions in the NVD entry
- Check whether unprivileged BPF is enabled with `sysctl kernel.unprivileged_bpf_disabled`

## Fix

- Update the Linux kernel to a release that includes the upstream fix for this commit (version unknown from the sources)

## Timeline

- 2026-10-23T21:57:16+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-98627

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
