CVE Catalog

CVE-2025-22087

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.23%

13th percentile - higher than 13% of all known CVEs

Summary

In the Linux kernel BPF subsystem, the may_goto instruction uses an extra 8 bytes on the stack, causing the interpreters[] array index calculation to go out of bounds.

Risk Assessment

This can lead to undefined kernel behavior, including kernel panic or potential privilege escalation if an attacker can control a BPF program.

Recommendation

Apply the patch that re-evaluates stack size after BPF program rewrite, rejects loading for non-JIT cases, and adds warnings for out-of-bounds access.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix array bounds error with may_goto may_goto uses an additional 8 bytes on the stack, which causes the interpreters[] array to go out of bounds when calculating index by stack_size. 1. If a BPF program is rewritten, re-evaluate the stack size. For non-JIT cases, reject loading directly. 2. For non-JIT cases, calculating interpreters[idx] may still cause out-of-bounds array access, and just warn about it. 3. For jit_requested cases, the execution of bpf_func also needs to be warned. So move the definition of function __bpf_prog_ret0_warn out of the macro definition CONFIG_BPF_JIT_ALWAYS_ON.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS