Skip to contentSkip to conversation

CVE-2026-93270: bpf: Disallow interpreter fallback for BPF_ADDR_PERCPU insn

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

bpf: Disallow interpreter fallback for BPF_ADDR_PERCPU insn

The BPF_MOV64_PERCPU_REG insn requires JIT to emit native code to for 'dst_reg = src_reg + <percpu_base_off>'.

However, the interpreter ignores the 'off' at its ALU64_MOV_X label. The 'off' indicates the insn is BPF_MOV64_PERCPU_REG insn. Then, when the interpreter loads memory from the register, it will hit a page fault.

[    2.545572] BUG: unable to handle page fault for address: ffffffffacaaf034
[    2.546485] #PF: supervisor read access in kernel mode
[    2.547167] #PF: error_code(0x0000) - not-present page
[    2.547850] PGD 134e63067 P4D 134e63067 PUD 134e64063 PMD 10021c063 PTE 800ffffeca550062
[    2.548912] Oops: Oops: 0000 [#1] SMP PTI

Set jit_required as true in order to disallow interpreter fallback in core.c::__bpf_prog_select_runtime(), if any BPF_ADDR_PERCPU insn is patched to the prog.

BTW, rename the helper bpf_map_supports_cpu_flags() to bpf_map_is_percpu_map().

The Linux kernel CVE team has assigned CVE-2026-93270 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 7bdbf7446305cb65c510c16d57cde82bc76b234a and fixed in 7.2.6 with commit 57cf929a33cb76be3f24886073ae820b4c496914
	Issue introduced in 6.10 with commit 7bdbf7446305cb65c510c16d57cde82bc76b234a and fixed in 7.3-rc1 with commit 7a0855e73757ee9cf25ba635a1c735018ecba742

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-93270

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
include/linux/bpf.h
kernel/bpf/fixups.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/57cf929a33cb76be3f24886073ae820b4c496914
	https://git.kernel.org/stable/c/7a0855e73757ee9cf25ba635a1c735018ecba742