{"id":"CVE-2025-40169","summary":"bpf: Reject negative offsets for ALU ops","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject negative offsets for ALU ops\n\nWhen verifying BPF programs, the check_alu_op() function validates\ninstructions with ALU operations. The 'offset' field in these\ninstructions is a signed 16-bit integer.\n\nThe existing check 'insn-\u003eoff \u003e 1' was intended to ensure the offset is\neither 0, or 1 for BPF_MOD/BPF_DIV. However, because 'insn-\u003eoff' is\nsigned, this check incorrectly accepts all negative values (e.g., -1).\n\nThis commit tightens the validation by changing the condition to\n'(insn-\u003eoff != 0 && insn-\u003eoff != 1)'. This ensures that any value\nother than the explicitly permitted 0 and 1 is rejected, hardening the\nverifier against malformed BPF programs.","modified":"2026-03-20T12:43:12.508599Z","published":"2025-11-12T10:46:51.736Z","related":["SUSE-SU-2025:4393-1","SUSE-SU-2025:4422-1","SUSE-SU-2025:4505-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2025:4521-1","SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","SUSE-SU-2026:20039-1","SUSE-SU-2026:20059-1","SUSE-SU-2026:20473-1","SUSE-SU-2026:20496-1","openSUSE-SU-2025:20172-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40169.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/21167bf70dbe400563e189ac632258d35eda38b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3bce44b344040e5eef3d64d38b157c15304c0aab"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5017c302ca4b2a45149ad64e058fa2d5623c068f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/55c0ced59fe17dee34e9dfd5f7be63cbab207758"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40169.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40169"},{"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":"ec0e2da95f72d4a46050a4d994e4fe471474fd80"},{"fixed":"3bce44b344040e5eef3d64d38b157c15304c0aab"},{"fixed":"5017c302ca4b2a45149ad64e058fa2d5623c068f"},{"fixed":"21167bf70dbe400563e189ac632258d35eda38b5"},{"fixed":"55c0ced59fe17dee34e9dfd5f7be63cbab207758"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40169.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40169.json"}}],"schema_version":"1.7.5"}