CVE-2025-40050

published 28 Oct 2025 · updated 11 May 2026

bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 34904582b502a86fdb4d7984b12cacd2faabbe0d and Kernel b9ef4963227246b9222e1559ddeec8e7af63e6c6.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.17, >=aced132599b3c8884c050218d4c48eef203678f6 <34904582b502a86fdb4d7984b12cacd2faabbe0d, >=aced132599b3c8884c050218d4c48eef203678f6 <b9ef4963227246b9222e1559ddeec8e7af63e6c634904582b502a86fdb4d7984b12cacd2faabbe0d, b9ef4963227246b9222e1559ddeec8e7af63e6c6

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40050 severity on Zeptric[![CVE-2025-40050](https://zeptric.io/badge/cve/CVE-2025-40050.svg)](https://zeptric.io/cve/CVE-2025-40050)