Linux Kernel BPF Tail Call Infinite Loop Vulnerability

Vulnerability

A vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) implementation can lead to a potential infinite loop when using a combination of tail calls and the 'freplace' feature. This issue arises because the 'freplace' program can reset the tail call count, causing the tail call mechanism to loop indefinitely between certain entry points. The infinite loop can eventually result in a kernel panic.

Impact

Exploitation of this vulnerability can cause an infinite loop in the BPF tail call mechanism, leading to a kernel panic and system crash.

Remediation

The vulnerability has been addressed by preventing programs extended by an 'freplace' program from being updated to a 'prog_array' map, and vice versa. Additionally, 'freplace' extension programs are now disallowed from being tail-called. Users should ensure their BPF programs comply with these new restrictions.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
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.