{"id":"CVE-2025-40050","summary":"bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Skip scalar adjustment for BPF_NEG if dst is a pointer\n\nIn check_alu_op(), the verifier currently calls check_reg_arg() and\nadjust_scalar_min_max_vals() unconditionally for BPF_NEG operations.\nHowever, if the destination register holds a pointer, these scalar\nadjustments are unnecessary and potentially incorrect.\n\nThis patch adds a check to skip the adjustment logic when the destination\nregister contains a pointer.","modified":"2026-04-02T12:48:15.763631Z","published":"2025-10-28T11:48:26.654Z","related":["openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40050.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/34904582b502a86fdb4d7984b12cacd2faabbe0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9ef4963227246b9222e1559ddeec8e7af63e6c6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40050.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40050"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"aced132599b3c8884c050218d4c48eef203678f6"},{"fixed":"b9ef4963227246b9222e1559ddeec8e7af63e6c6"},{"fixed":"34904582b502a86fdb4d7984b12cacd2faabbe0d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40050.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40050.json"}}],"schema_version":"1.7.5"}