CVE-2025-22087: Linux kernel · bpf: Fix array bounds error with may_goto
Source GCVE Database
Not known to be exploited · CVSS 7.1 High.
Data as of 29 Oct 2026, 23:35 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
Users should monitor official Linux kernel advisories for updates addressing CVE-2025-22087. Until a fix is applied, avoid loading or rewriting BPF programs in vulnerable kernel versions, especially in non-JIT contexts. Follow vendor guidance once available.
Description
CVE-2025-22087 is a high-severity vulnerability in the Linux kernel's BPF subsystem involving an array bounds error caused by the use of an additional 8 bytes on the stack in the may_goto function. This leads to out-of-bounds access in the interpreters[] array during stack size calculations. The flaw affects BPF program rewriting and execution, particularly in non-JIT and JIT cases, potentially causing memory safety issues.
References
- nvd.nist.gov/vuln/detail/CVE-2025-22087 (opens in a new tab)
- git.kernel.org/stable/c/19e6817f84000d0b06f09fd69ebd56217842c122 (opens in a new tab)
- git.kernel.org/stable/c/1a86ae57b2600e5749f5f674e9d4296ac00c69a8 (opens in a new tab)
- git.kernel.org/stable/c/4524b7febdd55fb99ae2e1f48db64019fa69e643 (opens in a new tab)
- git.kernel.org/stable/c/6ebc5030e0c5a698f1dd9a6684cddf6ccaed64a0 (opens in a new tab)