HIGH Introduced in 5.19
bpf KptrStore Bypass
CVE-2026-98034
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.18 | 5.18.18 | 5.19 | 86a3171c90bf |
| 6.12 | 5.19 | 6.12.114 | bb667eb575c9 |
| 6.18 | 5.19 | 6.18.57 | 86168208737b |
| 6.6 | 5.19 | 6.6.160 | b8b98d3d3790 |
| 7.2 | 5.19 | 7.2.7 | ecdc5043794c |
| mainline | 5.19 | 7.3 | — |
| cip/6.12 | 5.19 | 6.12.114-cip34 | b8b98d3d3790 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |