CVE-2025-22087: bpf: Fix array bounds error with may_goto

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix array bounds error with maygoto

maygoto uses an additional 8 bytes on the stack, which causes the interpreters[] array to go out of bounds when calculating index by stacksize.

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 jitrequested cases, the execution of bpffunc also needs to be warned. So move the definition of function bpfprogret0warn out of the macro definition CONFIGBPFJITALWAYSON.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.9<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Event History

Apr 16, 2025
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22087?

CVE-2025-22087 has been assessed as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-22087?

To fix CVE-2025-22087, update your Linux kernel to the latest version that includes the patch addressing this vulnerability.

3

What systems are affected by CVE-2025-22087?

CVE-2025-22087 affects various versions of the Linux kernel where BPF programs are utilized.

4

What type of vulnerability is CVE-2025-22087?

CVE-2025-22087 is an array bounds error vulnerability that affects the BPF implementation in the Linux kernel.

5

Is there a known exploit for CVE-2025-22087?

As of now, there are no public exploits available for CVE-2025-22087.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203