Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98572 Overview
CVE-2026-98572 is a Linux kernel vulnerability in the Berkeley Packet Filter (BPF) Just-In-Time (JIT) compiler on MIPS32 architectures. The JIT emitted an addu instruction instead of addiu when generating code for immediate JMP JEQ and JMP JNE operations. This encoding error caused the immediate value 1 to be interpreted as register $at, producing invalid comparison results when the immediate operand was negative. The $at register maps to BPF_REG_AX, which the kernel uses for constant blinding. The issue was discovered using test_bpf on MIPS32r1 under QEMU emulation and resolved in the mainline kernel.
Critical Impact
Incorrect BPF JIT code generation on MIPS32 can produce wrong comparison outcomes in BPF programs, undermining logic that relies on constant blinding and signed immediate comparisons.
Affected Products
- Linux kernel BPF JIT compiler on MIPS32 architectures
- MIPS32r1 systems executing JIT-compiled BPF programs
- Kernel builds with CONFIG_BPF_JIT enabled on 32-bit MIPS
Discovery Timeline
- 2026-10-18 - CVE-2026-98572 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98572
Vulnerability Analysis
The Linux BPF JIT compiler translates BPF bytecode into native machine instructions for performance. On MIPS32, the JIT path for immediate forms of JMP JEQ (jump-if-equal) and JMP JNE (jump-if-not-equal) emitted the register-register addu opcode rather than the register-immediate addiu opcode. MIPS encodes these as distinct instructions: addu reads a second general-purpose register, while addiu reads a signed 16-bit immediate.
Because the generated instruction expected a register operand, the literal immediate value 1 was decoded as a reference to register $at (register 1 in the MIPS ABI). The resulting arithmetic operated on whatever value $at held at execution time, rather than the intended constant. When the immediate operand in the original BPF instruction was negative, the comparison result became invalid.
The $at register is additionally mapped to BPF_REG_AX, the auxiliary register the verifier uses for constant blinding. Constant blinding is a hardening mechanism that masks constants in BPF programs to defeat JIT spraying. Corrupting this register through faulty JIT output weakens that mitigation and produces incorrect BPF program behavior.
Root Cause
The root cause is an instruction selection bug in the MIPS32 BPF JIT backend. The emitter used the addu mnemonic for an operation that required the immediate form addiu. This is a code generation defect rather than a memory safety issue, and it falls under incorrect behavior in kernel-level JIT output.
Attack Vector
Exploitation requires the ability to load or trigger BPF programs on a MIPS32 host with the JIT enabled. The vulnerability does not provide a direct memory corruption primitive. The practical impact is incorrect execution of BPF comparison logic and degraded effectiveness of constant blinding on affected systems. See the upstream fix commits linked under References for the exact patch.
Detection Methods for CVE-2026-98572
Indicators of Compromise
- Unexpected failures or anomalous results in test_bpf kernel self-tests on MIPS32 systems
- BPF programs on MIPS32 producing inconsistent comparison outcomes for negative immediates
- Kernel builds on 32-bit MIPS running versions prior to the fix commits referenced in the Linux stable tree
Detection Strategies
- Inventory Linux hosts by architecture and identify MIPS32 systems with CONFIG_BPF_JIT=y
- Execute the in-tree test_bpf module to validate JIT correctness for immediate JMP JEQ/JMP JNE paths
- Compare running kernel versions against the fixed commits listed in the kernel.org references
Monitoring Recommendations
- Track kernel package versions on MIPS32 fleet endpoints and alert on unpatched builds
- Monitor for BPF program load events and JIT compilation errors in kernel logs
- Review internal usage of BPF features on MIPS32 appliances, embedded devices, and network equipment
How to Mitigate CVE-2026-98572
Immediate Actions Required
- Upgrade affected MIPS32 Linux kernels to a version containing the upstream fix commits
- Validate the fix by running the test_bpf kernel self-test module after update
- Audit MIPS32 devices in the environment, including embedded and networking appliances, for kernel currency
Patch Information
The fix changes the MIPS32 BPF JIT to emit addiu instead of addu for the immediate forms of JMP JEQ and JMP JNE. The patch is available in the following commits: 1547e9f, 1bd9167, 6f93952, 876ef04, beeae92, and db762fd.
Workarounds
- Disable the BPF JIT on affected MIPS32 systems by setting net.core.bpf_jit_enable=0 where the interpreter is acceptable
- Restrict unprivileged BPF program loading via kernel.unprivileged_bpf_disabled=1 to reduce attack surface
- Limit which users and workloads can load BPF programs on affected hosts until patching completes
# Disable BPF JIT and restrict unprivileged BPF loading on MIPS32 hosts
sysctl -w net.core.bpf_jit_enable=0
sysctl -w kernel.unprivileged_bpf_disabled=1
# Persist across reboots
echo 'net.core.bpf_jit_enable=0' >> /etc/sysctl.d/99-cve-2026-98572.conf
echo 'kernel.unprivileged_bpf_disabled=1' >> /etc/sysctl.d/99-cve-2026-98572.conf
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

