CVE-2026-98034 PUBLISHED

bpf: Mark NULL kptr stores precise

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 61df10c7799e27807ad5e459eec9d77cddf8bf45 to 86168208737bdd267d92d855d453d1d2f840df19 (excl.)
  • affected from 61df10c7799e27807ad5e459eec9d77cddf8bf45 to ecdc5043794c9184aa8e6c814603899479c46b35 (excl.)
  • Version b5a8069835e5236824a84281592d29f859b33153 is affected
  • affected from 5.18.18 to 5.19 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.19 is affected
  • unaffected from 0 to 5.19 (excl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References