KernelScan.io

HIGH Introduced in 5.19

bpf KptrStore Bypass

CVE-2026-98034

CVSS 8.5 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: bpf: Mark NULL kptr stores precise check_map_kptr_access() permits a scalar store into an untrusted kptr field only when the register is known to contain zero. Unlike other verifier checks whose outcome depends on a scalar value, it does not mark that register precise. A state checkpoint reached with an imprecise zero can therefore prune a second path that reaches the store with an arbitrary nonzero scalar. The program can write attacker-controlled bits into the kptr field and load them back as a PTR_TO_BTF_ID. Call mark_chain_precision() before accepting a known-zero register. This forces state equivalence to compare its scalar range and makes the verifier visit and reject a path carrying a nonzero value.

02

Engine v0.6.0

Risk summary

A BPF verifier precision-tracking flaw allows an attacker who can load BPF programs to bypass the verifier and write arbitrary values into a kptr map field, then load them back as a fake kernel pointer. This yields arbitrary kernel read/write, enabling full system compromise or container escape from any context with BPF access.

Affectedkernel/bpf/verifier.c (BPF verifier)

Vulnerability analysis

The BPF verifier allows a program to store a zero value into a map field that holds kernel pointers, but it fails to record that the value was exactly zero. When the verifier reuses earlier analysis results, it can mistakenly treat another program path that stores a non-zero attacker-controlled value as if it were the same safe zero store. That lets arbitrary data be written into the pointer field and later read back as a trusted kernel pointer. The fix forces the verifier to track the exact zero value before allowing the store, so it must separately examine and reject any path carrying a non-zero value. Any process that can load BPF programs can reach this; on systems with unprivileged BPF enabled, an ordinary local user can trigger it, while on hardened systems it requires administrative capability.

03

BranchIntroducedFixed inPatch commit
5.185.18.185.1986a3171c90bf
6.125.196.12.114bb667eb575c9
6.185.196.18.5786168208737b
6.65.196.6.160b8b98d3d3790
7.25.197.2.7ecdc5043794c
mainline5.197.3—
cip/6.125.196.12.114-cip34b8b98d3d3790

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)