PT-2026-163204

CVE-2026-139163

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
bpf: Keep stack arguments in arch bpf timed may goto()
The JITs pass the first stack arguments of a call in registers:
x86-64 r9 argument 6 arm64 x5-x7 arguments 6-8 riscv64 a5-a7 arguments 6-8
'*(u64 *)(r11 - 8) = rX' writes such a register in the caller. 'rX = *(u64 *)(r11 + 8)' reads it in the callee. A call changes these registers. Thus the verifier accepts no call between the write and the call of the callee, and no call in the callee before the read.
may goto is not a call for the verifier. But one time in 65535 iterations it calls arch bpf timed may goto(), and this function calls C code. It saves R0-R5 only.
*(u64 *)(r11 - 8) = 0   ; the verifier: argument 6 is 0
call sub
sub: 1: may goto 2f ; C code changes r9 goto 1b 2: r2 = *(u64 *)(r11 + 8) ; r2 is a kernel address r1 = map value r1 += r2 *(u64 *)(r1 + 0) = 0
On x86-64 the C code changes r9 when the time of may goto is up. With the hpet clocksource a look at the clock changes r9 too. The prog above crashes the kernel. LLVM does not emit such code: it reads stack arguments at the entry of a function, and it writes them immediately before the call.
Save and restore these registers too. The cost is 2 insns on x86-64, 4 on arm64 and 6 on riscv64, one time in 65535 iterations.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾