CVE-2026-143367
CVE-2026-143367CVE-2026-143367
Description
In the Linux kernel, the following vulnerability has been resolved:
bpf, x86: Fix bpf_throw() in a prog with a private stack
When the main prog has a private stack and the prog calls bpf_throw(), it
returns to the kernel with wrong values in r12, rbx, r13, r14 and r15. The
kernel crashes soon after that, for example:
BUG: kernel NULL pointer dereference, address: 0000000000000010
RIP: 0010:__bpf_prog_test_run_raw_tp+0x125/0x380
The main prog of a prog that can throw saves these five registers at its
entry. bpf_throw() walks the stack to the frame of the main prog and
gives the stack pointer of that frame to the exception callback, which
pops the registers from there. In a function with a private stack r9 is
the frame pointer, and the JIT emits 'push r9' in front of every call
and 'pop r9' after it. So the stack pointer that bpf_throw() finds is
8 bytes too low:
r12
rbx
r13
r14
r15 <- the callback has to pop from here
r9 <- rsp of the main prog at the call
r15 g
Scoring
| Last modified | 2026-12-03 |