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

Wed, 29 Oct 2025 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Linux
Linux linux Kernel
Vendors & Products Linux
Linux linux Kernel

Wed, 29 Oct 2025 00:15:00 +0000


Tue, 28 Oct 2025 12:00:00 +0000

Type Values Removed Values Added
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.
Title bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2025-10-28T11:48:26.654Z

Updated: 2025-10-28T11:48:26.654Z

Reserved: 2025-04-16T07:20:57.157Z

Link: CVE-2025-40050

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-10-28T12:15:39.163

Modified: 2025-10-28T12:15:39.163

Link: CVE-2025-40050

cve-icon Redhat

Severity :

Publid Date: 2025-10-28T11:48:26Z

Links: CVE-2025-40050 - Bugzilla