CVE-2025-40050
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bpf: Omitir ajuste escalar para BPF_NEG si dst es un puntero En check_alu_op(), el verificador actualmente llama a check_reg_arg() y adjust_scalar_min_max_vals() incondicionalmente para operaciones BPF_NEG. Sin embargo, si el registro de destino contiene un puntero, estos ajustes escalares son innecesarios y potencialmente incorrectos. Este parche añade una comprobación para omitir la lógica de ajuste cuando el registro de destino contiene un puntero.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40050 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-40050 changed 2026-10-19Public domain