CVE-2026-139163: bpf: Keep stack arguments in arch_bpf_timed_may_goto()
bpf: Keep stack arguments in archbpftimedmaygoto()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In arch_bpf_timed_may_goto(), save and restore the stack-argument registers: r9 on x86-64, x5–x7 on arm64, and a5–a7 on riscv64.
Event History
Frequently Asked Questions
Which systems are implicated by the stack-argument handling described here?
The affected calling conventions are identified for x86-64, arm64, and riscv64 JITs. The provided crash example specifically occurs on x86-64 when the timing path changes r9.
What BPF program pattern is needed to trigger the issue?
A program must preserve a stack-passed argument across a may_goto and then read it in a callee. Although the verifier does not treat may_goto as a call, its timed path can invoke C code and clobber registers used for stack arguments.
Is code generated by LLVM likely to produce the vulnerable pattern?
The data states that LLVM does not emit this pattern. LLVM reads stack arguments at function entry and writes them immediately before the call.