Skip to contentSkip to conversation

CVE-2026-98572: bpf: Fix immediate JMP JEQ/JNE on MIPS32

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: Fix immediate JMP JEQ/JNE on MIPS32

An addu instruction was emitted instead of addiu, causing the immediate value 1 to be interpreted as register $at. This made the comparison result invalid when the immediate operand was negative. Note that $at is mapped to BPF_REG_AX, which is used for constant blinding.

Fix the instruction to use the immediate form.

Found with test_bpf on MIPS32r1 emulated by QEMU.

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

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

	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 6.1.189 with commit 1547e9f3a7d71971216e6dba30270cae13fe4e02
	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 6.6.158 with commit beeae92e70e705e90a0d6d9b3b8498ee3b92f495
	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 6.12.112 with commit 6f939529ed6c580e9b6c5daa20be67fa0b3d4cf0
	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 6.18.55 with commit 876ef04c75c2751acfd355606fca3eced71dec65
	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 7.2.9 with commit 1bd91670966a7142ac94f2cebe2b5ae6bf5cb0c8
	Issue introduced in 5.16 with commit eb63cfcd2ee8ec3805f6881f43341f589c3d2278 and fixed in 7.3-rc5 with commit db762fd96be225bd06161c9631160c755d891693

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-98572

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:

	arch/mips/net/bpf_jit_comp32.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/1547e9f3a7d71971216e6dba30270cae13fe4e02
	https://git.kernel.org/stable/c/beeae92e70e705e90a0d6d9b3b8498ee3b92f495
	https://git.kernel.org/stable/c/6f939529ed6c580e9b6c5daa20be67fa0b3d4cf0
	https://git.kernel.org/stable/c/876ef04c75c2751acfd355606fca3eced71dec65
	https://git.kernel.org/stable/c/1bd91670966a7142ac94f2cebe2b5ae6bf5cb0c8
	https://git.kernel.org/stable/c/db762fd96be225bd06161c9631160c755d891693