CVE-2026-139618

bpf: Fix uninit read for helper mem args on partially spilled slots

Published Nov 30, 2026 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix uninit read for helper mem args on partially spilled slots

check_stack_range_initialized() takes the spilled register path when
bpf_is_spilled_reg(ss) holds, which, however, only looks at the last
byte of the slot. Hence, a partially spilled scalar (on the lower part)
bypasses the check and the following loads:

0: (b7) r1 = 1 ; R1=1
1: (63) *(u32 *)(r10 -8) = r1 ; R1=1 R10=fp0 fp-8=????1
2: (18) r1 = 0x0 ; R1=map_ptr(map=rb,ks=0,vs=0)
4: (bf) r2 = r10 ; R2=fp0 R10=fp0
5: (07) r2 += -8 ; R2=fp-8
6: (b7) r3 = 8 ; R3=8
7: (b7) r4 = 0 ; R4=0
8: (85) call bpf_ringbuf_output#130
...

When executed, it dumps the uninit four bytes:
RINGBUF: 01 00 00 00 ff ff ff ff

This is the same root cause as the non-fetch atomic case fixed in
commit 5a84b4424db8 ("bpf: Fix uninit read for non-fetch atomics on
partially spilled slots").

Fix by only taking the spilled register path for the bytes marked
STACK_SPILL, so the rest of the slot goes through the usual checks.

Analysis

AI-generated

Technical impact

During kernel execution, a BPF helper that uses a memory argument may read uninitialized data from a partially spilled register slot. The bug causes the kernel to return four uninitialized bytes to the calling program, which can appear in a BPF ring‑buffer output. This allows a user that can load or execute a BPF program to read a small portion of kernel memory, potentially revealing address information or other sensitive data. The flaw is a classic uninitialized‑read vulnerability, classified as an information‑disclosure weakness.

Affected Systems

The vulnerability exists in the core Linux kernel regardless of distribution, affecting all builds that include the unpatched code path. No specific version range is supplied by the CNA; kernels compiled before the commit that introduced the fix (169884f9…) are susceptible. Administrators should verify the kernel version and consider a patch or upgrade.

Risk and Exploitability

No CVSS or EPSS score is listed and the issue is not in the CISA KEV catalog, so formal exploitation data is unavailable. However, the flaw requires the ability to load a BPF program, which is normally privileged or requires CAP_SYS_ADMIN. Therefore the risk is limited to environments where BPF is exposed to untrusted users or where local privilege escalation is possible. A local attacker could read kernel memory, which might aid further attacks. Prompt patching is the safest response.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the commit that addresses the uninitialized read.
  • If a kernel upgrade is not immediately possible, restrict the ability to load BPF programs by removing CAP_SYS_ADMIN from untrusted users or disabling BPF configuration where appropriate.
  • Monitor BPF ring‑buffer outputs for unexpected data patterns that may indicate attempted exploitation.

Generated by OpenCVE AI on December 1, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-200
CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Fix uninit read for helper mem args on partially spilled slots check_stack_range_initialized() takes the spilled register path when bpf_is_spilled_reg(ss) holds, which, however, only looks at the last byte of the slot. Hence, a partially spilled scalar (on the lower part) bypasses the check and the following loads: 0: (b7) r1 = 1 ; R1=1 1: (63) *(u32 *)(r10 -8) = r1 ; R1=1 R10=fp0 fp-8=????1 2: (18) r1 = 0x0 ; R1=map_ptr(map=rb,ks=0,vs=0) 4: (bf) r2 = r10 ; R2=fp0 R10=fp0 5: (07) r2 += -8 ; R2=fp-8 6: (b7) r3 = 8 ; R3=8 7: (b7) r4 = 0 ; R4=0 8: (85) call bpf_ringbuf_output#130 ... When executed, it dumps the uninit four bytes: RINGBUF: 01 00 00 00 ff ff ff ff This is the same root cause as the non-fetch atomic case fixed in commit 5a84b4424db8 ("bpf: Fix uninit read for non-fetch atomics on partially spilled slots"). Fix by only taking the spilled register path for the bytes marked STACK_SPILL, so the rest of the slot goes through the usual checks.
Title bpf: Fix uninit read for helper mem args on partially spilled slots
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-788

    Access of Memory Location After End of Buffer

  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Low
Public date
Nov 30, 2026, 1:36 PM