Linux Kernel BPF ALU Operations Vulnerability: Negative Offset Acceptance

Vulnerability

A vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) program verification process has been addressed. The issue arose in the 'check_alu_op()' function, which validates ALU (Arithmetic Logic Unit) operation instructions. The vulnerability allowed negative offsets to be accepted, contrary to the intended validation. This was due to the 'offset' field being a signed 16-bit integer, where the existing check incorrectly allowed negative values. The vulnerability affected several versions of the Linux kernel.

Impact

The vulnerability could lead to the BPF verifier accepting malformed BPF programs, potentially causing unintended behavior or security issues.

Reproduction

The vulnerability can be reproduced by creating a BPF program that includes ALU operations with negative offsets. The BPF verifier will incorrectly accept these programs, demonstrating the flaw in the offset validation.

Remediation

Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Nov 12, 2025, 11:25 AM
Updated: Nov 12, 2025, 4:48 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
5.7
remediation
7.7
relevance
1.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.