Linux Kernel Stack Depth Mismanagement Vulnerability in BPF Verifier

Vulnerability

A vulnerability exists in the Linux kernel's handling of stack depth within the BPF verifier, specifically in the 'widen_imprecise_scalars' function. This issue can lead to out-of-bounds access in the stack frame of the BPF verifier state. The vulnerability arises because the function does not properly account for differences in allocated stack depth between the current and previous states, which can be exploited under certain conditions, such as when an iterator-based loop is used.

Impact

Exploitation of this vulnerability can cause a stack overflow by pushing too much data onto the stack, potentially leading to arbitrary code execution.

Reproduction

The vulnerability can be reproduced by creating a BPF program that uses an iterator-based loop to call a function with varying parameters. The second call will have a smaller allocated stack depth, causing 'widen_imprecise_scalars' to access the stack out of bounds.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.

Added: Dec 16, 2025, 4:30 PM
Updated: Dec 16, 2025, 4:30 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.4
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.