Linux Kernel BPF Devmap Stack-Out-of-Bounds Write Vulnerability

Vulnerability

A stack-out-of-bounds write vulnerability has been identified in the Linux kernel's BPF devmap functionality. The issue arises in the 'get_upper_ifindexes()' function, which collects indices of upper devices into an array without proper bounds checking. This flaw can lead to overwriting adjacent memory on the stack. The vulnerability is present in the stable versions of the Linux kernel.

Impact

Exploitation of this vulnerability can cause a stack-based buffer overflow, potentially leading to arbitrary code execution or corruption of stack data, which could be exploited to gain control of the execution flow.

Reproduction

To reproduce this vulnerability, create more than eight macvlan interfaces on a network device that has an XDP (Express Data Path) program attached, using the BPF flags to broadcast and exclude ingress. Then, send a packet to the device, which will trigger the XDP redirect process, causing the out-of-bounds write.

Remediation

Users can upgrade to the latest stable 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: Mar 25, 2026, 12:04 PM
Updated: Mar 25, 2026, 12:04 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
4.3
remediation
7.7
relevance
4.7
threat
4.8
urgency
2.9
incentive
0.0

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