Technical impact
The Linux kernel BPF verifier mishandles 64‑bit mask values on 32‑bit architectures. In a BPF_JSET instruction, the verifier tests whether the mask is a power of two using is_power_of_2(val), which operates on an unsigned long. On a 32‑bit kernel, unsigned long contains only the lower half of the 64‑bit mask. When the high bits contain a power‑of‑two position, the verifier incorrectly records a constant offset that is not present at runtime. This discrepancy allows a BPF program to calculate an index into a map value that lies outside its allocated bounds, enabling the program to read or write arbitrary kernel memory beyond the map.
Affected Systems
Only 32‑bit Linux kernels are impacted. The description explicitly refers to an i386 kernel, and it is inferred that other 32‑bit variants inherit the same unsigned‑long size limitation and therefore are also vulnerable unless the patch has been applied.
Risk and Exploitability
No public exploit has been reported and the vulnerability is not listed in CISA’s KEV catalog. The EPSS score is not available, suggesting a low probability of widespread exploitation under typical conditions. However, the flaw can be leveraged by an attacker who can load a custom BPF program with elevated privileges, such as CAP_SYS_ADMIN, to achieve privilege escalation, cause kernel crashes, or write arbitrary data in kernel memory. The potential impact is high and the risk remains significant until a patched kernel is deployed.