# CVE-2026-98132: bpf: don't downgrade half-dead scalar zero spills to STACK_ZERO

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-09-25T10:36:11.662Z
- Modified: 2026-10-19T10:18:12.373Z
- Assigned by: Linux

## Description

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

bpf: don't downgrade half-dead scalar zero spills to STACK_ZERO

states.c:__clean_func_state() can downgrade scalar zero spill to
STACK_ZERO in the following case:

  *(u64 *)(r10 - 8) = 0;
  ... checkpoint ...
  r1 = *(u32 *)(r10 - 4);
  ... no reads from r10-8 ...

Here 4 bytes at r10-8 are dead and verifier changes scalar spill to a
combination: 0000pppp (p stands for poison). Such a change breaks
precision propagation chains. All places that produce STACK_ZERO
should call bpf_mark_chain_precision() for the zero source.

This patch fixes the bug in a simplest way possible:
avoids converting stack spills of zero to STACK_ZERO.
Two smarter approaches are possible:
- do bpf_mark_chain_precision() from __clean_func_state()
- check slot liveness information in check_stack_write_fixed_off()

I investigated both and the changes required are a bit tricky,
hence go with a simple fix for the time being.

(As written by CVE List.)

## Affected

- Linux Linux: from be23266b4a08540aa43d8503a2ea10247c8daebe before 436fa689630b741a77ef8c4a6f426479affd5bac; from be23266b4a08540aa43d8503a2ea10247c8daebe before 2f3536bff8823d3c5fdbbe15e17bfca696cc2b2e; 7.1 (not affected: before 7.1; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 7.1 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/436fa689630b741a77ef8c4a6f426479affd5bac> (patch)
- <https://git.kernel.org/stable/c/2f3536bff8823d3c5fdbbe15e17bfca696cc2b2e> (patch)

## Sources

- CVE List: [CVE-2026-98132](https://www.cve.org/CVERecord?id=CVE-2026-98132), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98132](https://nvd.nist.gov/vuln/detail/CVE-2026-98132), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98132 · Whole record: https://cve.day/CVE-2026-98132.json · Rebuilt by cve.day 2026-11-25T22:59:41.073Z
