HIGH Introduced in 7.2
bpf JitCpuNr Leak
CVE-2026-93147
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.2 | 7.2.6 | 88500a86ab79 |
| mainline | 7.2 | 7.3 | 5f6cc299938b |