{"id":73453,"date":"2025-11-12T14:45:47","date_gmt":"2025-11-12T11:15:47","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-40169-bpf-reject-negative-offsets-for-alu-ops\/"},"modified":"2025-11-12T14:45:47","modified_gmt":"2025-11-12T11:15:47","slug":"cve-2025-40169-bpf-reject-negative-offsets-for-alu-ops","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-40169-bpf-reject-negative-offsets-for-alu-ops\/","title":{"rendered":"CVE-2025-40169 &#8211; bpf: Reject negative offsets for ALU ops"},"content":{"rendered":"<p>CVE ID : CVE-2025-40169<\/p>\n<p>Published :  Nov. 12, 2025, 11:15 a.m. | 16\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf: Reject negative offsets for ALU ops<\/p>\n<p>When verifying BPF programs, the check_alu_op() function validates<br \/>\ninstructions with ALU operations. The &#8216;offset&#8217; field in these<br \/>\ninstructions is a signed 16-bit integer.<\/p>\n<p>The existing check &#8216;insn-&gt;off &gt; 1&#8217; was intended to ensure the offset is<br \/>\neither 0, or 1 for BPF_MOD\/BPF_DIV. However, because &#8216;insn-&gt;off&#8217; is<br \/>\nsigned, this check incorrectly accepts all negative values (e.g., -1).<\/p>\n<p>This commit tightens the validation by changing the condition to<br \/>\n&#8216;(insn-&gt;off != 0 &amp;&amp; insn-&gt;off != 1)&#8217;. This ensures that any value<br \/>\nother than the explicitly permitted 0 and 1 is rejected, hardening the<br \/>\nverifier against malformed BPF programs.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-40169 Published : Nov. 12, 2025, 11:15 a.m. | 16\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: bpf: Reject negative offsets for ALU ops When verifying BPF programs, the check_alu_op() function validates instructions with ALU operations. The &#8216;offset&#8217; field in these instructions is a signed 16-bit &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-73453","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/73453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=73453"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/73453\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=73453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=73453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=73453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}