Read the docs

BPF: uninitialized read of helper memory args on partially spilled stack slots

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

The Linux kernel BPF verifier's check_stack_range_initialized() takes the spilled-register path whenever bpf_is_spilled_reg() holds, but that helper only inspects the last byte of a stack slot. A partially spilled scalar in the lower part of the slot therefore skips the initialization check, and a helper that takes a memory argument, such as bpf_ringbuf_output, can read uninitialized stack bytes. The reported example dumps four uninitialized bytes, and the same root cause was fixed for non-fetch atomics in commit 5a84b4424db8. Affected ranges are 5.10.168 before 5.11, 5.15.93 before 5.16, and 5.16 onward.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Fix Fixed Linux (Linux): 5.11, 5.16, 6.12.120 +3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux5.10.168 to before 5.11; 5.15.93 to before 5.165.11, 5.16Patch availableCNA
LinuxLinux5.16 and later6.12.120, 6.18.66, 7.3.6, 7.4-rc1Patch availableCNA
  • Linux VendorLinux Affected 5.10.168 to before 5.11; 5.15.93 to before 5.16 Fixed in 5.11, 5.16 Patch available CNA
  • Linux VendorLinux Affected 5.16 and later Fixed in 6.12.120, 6.18.66, 7.3.6, 7.4-rc1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*——Linux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions — — ·Linux

Remediation

Update to a fixed Linux kernel: 5.11 or 5.16 on the older branches, or 6.12.120, 6.18.66, 7.3.6, or 7.4-rc1 on the newer ones. The fix takes the spilled-register path only for bytes marked STACK_SPILL, so the rest of the slot goes through the usual checks.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA Linux (Linux) Fixed in 5.11, 5.16
  • Fix · CNA Linux (Linux) Fixed in 6.12.120, 6.18.66, 7.3.6, 7.4-rc1

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-139618
  2. 2026-11-30 Alias added: GHSA-gq6w-wcjm-v7g6

References

  • TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
  • TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
See all 23530 →

Sources