# CVE-2025-40050: bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:26.654Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from aced132599b3c8884c050218d4c48eef203678f6 before b9ef4963227246b9222e1559ddeec8e7af63e6c6; from aced132599b3c8884c050218d4c48eef203678f6 before 34904582b502a86fdb4d7984b12cacd2faabbe0d; 6.17 (not affected: before 6.17; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/b9ef4963227246b9222e1559ddeec8e7af63e6c6>
- <https://git.kernel.org/stable/c/34904582b502a86fdb4d7984b12cacd2faabbe0d>

## Sources

- CVE List: [CVE-2025-40050](https://www.cve.org/CVERecord?id=CVE-2025-40050), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40050](https://nvd.nist.gov/vuln/detail/CVE-2025-40050), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40050 · Whole record: https://cve.day/CVE-2025-40050.json · Rebuilt by cve.day 2026-11-25T22:59:06.935Z
