CVE-2026-98034: bpf: Mark NULL kptr stores precise

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bpf: Mark NULL kptr stores precise

checkmapkptraccess() 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 PTRTOBTFID.

Call markchainprecision() 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description

Frequently Asked Questions

1

What must an attacker be able to do to exploit this issue?

An attacker must be able to load and run a BPF program that reaches an untrusted kptr field store. Exploitation relies on steering verifier state handling so that a store accepted as a known-zero scalar is also reachable with an attacker-controlled nonzero scalar.

2

What is the security impact if the verifier is bypassed?

The BPF program can write attacker-controlled bits into a kptr field and then load those bits back as a PTR_TO_BTF_ID. The description does not specify the resulting privilege level or downstream impact.

3

How does the fix prevent exploitation?

The fix calls mark_chain_precision() before accepting a known-zero register for the kptr store. This makes state equivalence compare the scalar range, preventing an imprecise zero state from pruning the path where the scalar is nonzero.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203