PT-2026-163243
CVE-2026-139202
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
bpf: Validate stack arg reads against caller state
check stack arg read() bounds a stack argument index with the callee's
BTF-derived argument count, then uses the index in the caller's
stack arg regs[] array. The array's actual logical length is recorded in
caller->out stack arg cnt, so the bound and indexed object can diverge.
A crafted BPF PROG LOAD can use an argument mismatch to mark a static
subprogram's BTF information unreliable. Later calls return from
btf check subprog call() before check outgoing stack args(), while
check func call() continues the static call on -EINVAL. The callee can
then read a slot that the caller never allocated or initialized. The
earlier commit 4286f5deee14 ("bpf: Validate outgoing stack args when
btf prepare func args fails") closed this hole for the first call, but
not for later calls after the subprogram has been marked unreliable.
Callbacks have a related problem. The verifier can make incoming stack
arguments readable from outgoing slots at the helper call site. However,
helpers and kfuncs invoke callbacks through an ABI that passes at most five
arguments, so the runtime callback receives no stack arguments. Async
callback verification can also reach check stack arg read() without a
caller frame.
On x86-64, KASAN reports the direct-call out-of-bounds copy as:
BUG: KASAN: slab-out-of-bounds in check load mem+0xb51/0xc60
Read of size 80 at addr ffff8881009af550 by task poc/131
Call Trace:
check stack arg read at kernel/bpf/verifier.c:4234
(inlined by) check load mem at kernel/bpf/verifier.c:6645
do check common at kernel/bpf/verifier.c:19568
bpf check at kernel/bpf/verifier.c:21318
bpf prog load at kernel/bpf/syscall.c:3134
Reject callback subprograms with incoming stack arguments before their
state is pushed. For direct calls, retrieve the slot with
bpf get spilled stack arg(), which validates the index against the caller's
out stack arg cnt and rejects uninitialized slots before copying the
register state.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾