KernelScan.io

HIGH Introduced in 7.2

bpf JitCpuNr Leak

CVE-2026-93147

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.8HIGH

01

In the Linux kernel, the following vulnerability has been resolved: s390/bpf: Replace ly instruction with llgf cpu_nr is a 32 bit value and BPF_REG_0 is a 64 bit register, when ly loads the cpu_nr into BPF_REG_0 it does not zero the upper bits, but llgf does.

02

Engine v0.6.0

Risk summary

On s390 systems, the BPF JIT compiler generates incorrect code for the CPU-number helper that can leave stale data in a register the verifier assumed was clean. A user with BPF loading privileges could exploit this to bypass verifier bounds checks and access kernel memory out of bounds. Systems without unprivileged BPF access are only exposed to users who already hold CAP_BPF.

Affectedarch/s390/net/bpf_jit_comp.c (s390 BPF JIT)

Vulnerability analysis

The s390 BPF JIT compiler generates incorrect machine code when inlining the CPU-number helper: it loads a 32-bit value into a 64-bit register without clearing the upper bits, leaving stale data that the BPF verifier assumed was zero. A crafted BPF program can exploit this mismatch to use the corrupted value as an array index, bypassing the verifier's bounds checks and reading or writing kernel memory out of bounds. The fix switches to an instruction that zero-extends the 32-bit value, matching what the verifier expects. The vulnerable path is reachable by any user who can load BPF programs, which on most distributions requires CAP_BPF in the initial namespace.

03

BranchIntroducedFixed inPatch commit
7.27.27.2.688500a86ab79
mainline7.27.35f6cc299938b