CVE-2026-98132

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

Published Sep 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the bpf verifier can inappropriately convert a half‑dead scalar zero spill into a STACK_ZERO value. This flaw disrupts precision propagation chains and can allow a malformed eBPF program to pass verification even though it is invalid. The vulnerability is a CWE-843 type flaw involving improper handling of precision propagation, and can potentially allow an attacker to gain kernel execution privileges. While the CVE description does not explicitly claim privilege escalation, a successful bypass could enable the execution of arbitrary code in the kernel context by the attacker, potentially granting elevated privileges.

Affected Systems

All Linux kernel releases that do not contain the patch 2f3536bff8823d3c5fdbbe15e17bfca696cc2b2e or the equivalent commit are vulnerable. This includes every upstream Linux kernel version prior to the inclusion of the fix, as the vulnerability was present in the kernel code and not tied to a particular downstream distribution. The affected product is the Linux kernel, used as the core operating system in all Linux distributions.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% suggests a low current likelihood of exploitation. The vulnerability is not yet listed in CISA’s KEV catalog, implying it has not been observed in the wild. An attacker would need the ability to load eBPF programs and craft a malicious program that triggers the zero‑spill downgrade. In hardened environments where eBPF loading is restricted, the risk is further reduced, but systems that allow user‑space BPF loading remain potentially vulnerable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates commit 2f3536bff8823d3c5fdbbe15e17bfca696cc2b2e.
  • If an upgrade is not immediately possible, disable user‑space BPF program loading by setting sysctl kernel.bpf.disable_loader=1 and restrict /dev/bpf to privileged users only.
  • Configure device permissions or udev rules so that only privileged processes can access the BPF subsystem, thereby limiting potential exploitation vectors.

Generated by OpenCVE AI on October 8, 2026 at 22:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
Weaknesses CWE-843
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
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.
Title bpf: don't downgrade half-dead scalar zero spills to STACK_ZERO
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:14 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Analyzed
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 19, 2026, 10:18 AM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM