CVE-2026-72426

bpf: Preserve pointer spill metadata during half-slot cleanup

Published Aug 15, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Preserve pointer spill metadata during half-slot cleanup

__clean_func_state() cleans dead stack slots in 4-byte halves. When the
high half of a STACK_SPILL slot is dead and the low half remains live,
cleanup converts the live low half to STACK_MISC or STACK_ZERO and clears
the saved spilled_ptr metadata.

That conversion is safe only for scalar spills. For a pointer spill, this
metadata clear lets a later 32-bit fill from the still-live half avoid the
normal non-scalar register-fill check and be treated as an ordinary scalar
stack read.

Leave non-scalar spill slots intact in this half-live shape. This is
conservative for pruning and preserves the existing
check_stack_read_fixed_off() rejection path for partial fills from pointer
spills.

Analysis

AI-generated

Technical impact

The vulnerability lies in the BPF stack cleanup logic within the Linux kernel. When a high half of a STACK_SPILL slot becomes dead while the low half stays live, the cleanup routine clears the saved spilled_ptr metadata. For pointer spills this clearing bypasses the normal scalar register‑fill check, allowing a 32‑bit fill from the still‑live half to be interpreted as a scalar stack read. Since this behavior is governed by improper pointer metadata handling, it is categorized as CWE‑843. The result is that a malicious BPF program can read kernel memory it should not see or force a kernel crash, leading to potential information disclosure and instability.

Affected Systems

Affected systems are Linux kernel builds that expose the bpf() system call. The advisory does not specify affected version numbers, so it is inferred that any kernel build prior to the commit that introduced the fix may contain this flaw unless the update has been applied. Users should assume kernels before the commit are potentially vulnerable if they have not installed the patch.

Risk and Exploitability

The flaw involves manipulation of kernel stack memory, which constitutes a high‑severity vector. The CVSS score of 8.4 highlights serious impact, while the EPSS score of < 1% indicates a very low likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. An attacker who can run a crafted eBPF program on the target system, which requires local or privileged access, could trigger the flaw to read protected kernel memory or destabilize the kernel. The likely attack vector is inferred to be a crafted BPF program that exploits the pointer spill cleanup bug, effectively bypassing the safety check to access out‑of‑bounds memory (CWE‑843) and potentially gaining unauthorized memory access. The overall risk remains significant for systems that allow untrusted BPF programs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel release that contains the BPF stack cleanup patch.
  • Enforce strict BPF program access controls, allowing only trusted users to load programs, which mitigates out‑of‑bounds reads (CWE‑843) and unauthorized memory access.
  • Continuously monitor kernel logs and audit BPF programs for anomalous memory accesses to detect any exploitation attempts.

Generated by OpenCVE AI on August 22, 2026 at 03:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-200
CWE-775
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-200
CWE-775
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Preserve pointer spill metadata during half-slot cleanup __clean_func_state() cleans dead stack slots in 4-byte halves. When the high half of a STACK_SPILL slot is dead and the low half remains live, cleanup converts the live low half to STACK_MISC or STACK_ZERO and clears the saved spilled_ptr metadata. That conversion is safe only for scalar spills. For a pointer spill, this metadata clear lets a later 32-bit fill from the still-live half avoid the normal non-scalar register-fill check and be treated as an ordinary scalar stack read. Leave non-scalar spill slots intact in this half-live shape. This is conservative for pruning and preserves the existing check_stack_read_fixed_off() rejection path for partial fills from pointer spills.
Title bpf: Preserve pointer spill metadata during half-slot cleanup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:44 AM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Aug 17, 2026, 6:19 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM