AZL-117034: CVE-2026-139303 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Assume no bounds for buffers behind a tail call
The bpfmapelem, bpfskstoragemap and sockmap iterators hand the key and the value of an element to the program as buffers. The verifier notes how far a program reaches into them, and the iterator compares that with the map when the program is attached. A program that does not touch the buffers passes. It can tail-call another program of the same target, which gets the same context, and whose reach nobody compares with the map:
BUG: KASAN: slab-out-of-bounds in bpfprogrun+0xa46a/0xae80
The program array can be filled at any time, so there is nothing to look at when the link is made. For the same reason a program with a tail call is taken to use the whole stack and the whole packet. Take it to reach as far as can be into the buffers as well, so that these iterators refuse it with -EACCES.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
An attacker needs to load a BPF program using a bpf_map_elem, bpf_sk_storage_map, or sockmap iterator that does not access its key or value buffers directly, then tail-call another program of the same target that accesses them. The program array can be populated after the iterator program is attached.
How does the fix prevent exploitation?
Programs containing a tail call are treated as potentially reaching as far as possible into iterator key and value buffers. Iterator attachment validation then rejects incompatible programs with -EACCES rather than allowing the tail-called program to access buffers beyond the map bounds.