AZL-117250: CVE-2026-139618 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix uninit read for helper mem args on partially spilled slots
checkstackrangeinitialized() takes the spilled register path when bpfisspilledreg(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=mapptr(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 bpfringbufoutput#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 STACKSPILL, so the rest of the slot goes through the usual checks.
Affected Software
Event History
Frequently Asked Questions
What does successful exploitation disclose?
A crafted BPF program can cause helper memory-argument validation to miss uninitialized bytes in a partially spilled stack slot. The demonstrated ring buffer output exposes four uninitialized bytes alongside the initialized data.
What does an attacker need to trigger the issue?
The demonstrated trigger requires execution of a crafted BPF program that creates a partially spilled stack slot and passes that stack range to a BPF helper, such as bpf_ringbuf_output. The provided data does not state any additional access or privilege requirements.
How does the fix prevent the disclosure?
The fix limits the spilled-register validation path to bytes explicitly marked STACK_SPILL. Other bytes in the slot are then subject to the usual stack-initialization checks instead of being treated as initialized.