{"id":"CVE-2025-40050","aliases":["CVE-2025-40050"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Skip scalar adjustment for BPF_NEG if dst is a pointer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbpf: Omitir ajuste escalar para BPF_NEG si dst es un puntero\n\nEn 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.\n\nEste parche añade una comprobación para omitir la lógica de ajuste cuando el registro de destino contiene un puntero.","source":"nvd"}],"published":"2025-10-28T11:48:26.654Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aced132599b3c8884c050218d4c48eef203678f6","fixed":"b9ef4963227246b9222e1559ddeec8e7af63e6c6","status":"affected"},{"type":"git","introduced":"aced132599b3c8884c050218d4c48eef203678f6","fixed":"34904582b502a86fdb4d7984b12cacd2faabbe0d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b9ef4963227246b9222e1559ddeec8e7af63e6c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34904582b502a86fdb4d7984b12cacd2faabbe0d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40050","url":"https://www.cve.org/CVERecord?id=CVE-2025-40050","licence":"CVE Terms of Use","modified":"2026-05-11T21:41:30.716Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40050","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40050","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.935Z","epss":{"score":0.0022,"percentile":0.1331,"date":"2026-12-01T12:00:22.000Z"}}