Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143306

bpf: Emit timed may_goto for JITed progs only

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Emit timed may_goto for JITed progs only The timed form of may_goto calls arch_bpf_timed_may_goto(). This function takes its argument and returns its result in BPF_REG_AX, 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 CONFIG_BPF_JIT_ALWAYS_ON=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 bpf_check_timed_may_goto() 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 BPF_MAX_LOOPS. One test of verifier_may_goto_1 shows the insns of the timed form. Load it only when progs are JITed.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • e723608bf428014b15d9904e062f44f5fe473ad6 to < 4373cf52166e170c8e4f24919240fbc6d8d346abaffected
  • e723608bf428014b15d9904e062f44f5fe473ad6 to < 1ddffb57b36239e84b8224b12e34b87f6031b29caffected

Linux Linux

Default version status: affected

  • 6.15affected
  • 0 to < 6.15unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc2 to ≤ *unaffected

References