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

Published Oct 28, 2025
·
Updated

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

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

In checkaluop(), the verifier currently calls checkregarg() and adjustscalarminmaxvals() unconditionally for BPFNEG 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 Software

1 affected component
Linux Linux kernel

Event History

Oct 28, 2025
CVE Published
via MITRE·11:48 AM
Data Sourced
via MITRE·11:48 AM
Description
Data Sourced
via NVD·12:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40050?

CVE-2025-40050 is classified as a medium-severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2025-40050?

To fix CVE-2025-40050, ensure that your Linux kernel is updated to the latest stable version that includes the security patch.

3

What software is affected by CVE-2025-40050?

CVE-2025-40050 affects the Linux kernel, specifically versions prior to the inclusion of the patch addressing this vulnerability.

4

What kind of exploitation is possible with CVE-2025-40050?

CVE-2025-40050 could potentially allow unauthorized operations in the BPF (Berkeley Packet Filter) environment.

5

When was CVE-2025-40050 reported?

CVE-2025-40050 was reported in 2025, indicating a proactive discovery of a vulnerability in the Linux kernel.

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