What’s Vulnerable › Vulnerabilities
CVE-2025-40050: bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-28 · updated 2026-10-19
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer In check_alu_op(), the verifier currently calls check_reg_arg() and adjust_scalar_min_max_vals() unconditionally for BPF_NEG operations. However, if the destination register holds a pointer, these scalar adjustments are unnecessary and potentially incorrect. This patch adds a check to skip the adjustment logic when the destination register contains a pointer.
Affected products
- Linux kernel: 6.17 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/34904582b502a86fdb4d7984b12cacd2faabbe0d
- https://git.kernel.org/stable/c/b9ef4963227246b9222e1559ddeec8e7af63e6c6
Get alerted when CVE-2025-40050 or the next vulnerability affects your stack