CVE-2026-143306: bpf: Emit timed may_goto for JITed progs only
In the Linux kernel, the following vulnerability has been resolved:
bpf: Emit timed maygoto for JITed progs only
The timed form of maygoto calls archbpftimedmaygoto(). This function takes its argument and returns its result in BPFREGAX, in a register of the cpu. Only JITed code can call it.
The verifier emits the timed form when the arch has a JIT that supports it. It does not look at the prog. With CONFIGBPFJITALWAYSON=n the interpreter can run such a prog: the JIT is off, or it fails. The interpreter calls the function like a helper. The function takes what the C code left in that register for a pointer, and bpfchecktimedmaygoto() reads and writes through it.
Emit the timed form only when the prog asks for a JIT, and make the JIT mandatory for such a prog. All other progs get the form that counts down from BPFMAXLOOPS.
One test of verifiermaygoto1 shows the insns of the timed form. Load it only when progs are JITed.
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.7
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems with CONFIG_BPF_JIT_ALWAYS_ON disabled may be exposed when a BPF program receives the timed may_goto form but is executed by the interpreter because JIT is disabled or JIT compilation fails.
What conditions are required for exploitation?
An affected BPF program must be loaded such that the verifier emits timed may_goto instructions, while the program ultimately runs interpreted rather than as JITed code. The unsafe path occurs because the interpreter invokes the architecture-specific function as though it were a helper.
Does enabling mandatory JIT mitigate the problem?
Yes. The fix makes JIT mandatory for programs that use the timed may_goto form, preventing those programs from falling back to interpreter execution. Programs not requesting JIT instead use the loop-countdown form.
How can I determine whether a running program is affected?
The relevant condition is a program using timed may_goto that runs in the interpreter due to JIT being disabled or JIT compilation failure. The provided data does not specify a runtime detection method beyond verifying those conditions.