Linux Kernel BPF Iterator Uninitialized State Vulnerability

Vulnerability

A vulnerability in the Linux kernel's BPF iterator handling has been addressed. The issue arose because the function 'bpf_iter_scx_dsq_new()' did not consistently initialize the iterator, particularly after an error return. This lack of proper initialization could lead to the iterator referencing invalid data. BPF programs might inadvertently call 'next()' and 'destroy()' on these uninitialized iterators, causing 'bpf_iter_scx_dsq_next()' to dereference garbage data. The vulnerability has been fixed by ensuring that 'bpf_iter_scx_dsq_new()' always clears the iterator state, making the 'next()' and 'destroy()' calls harmless.

Impact

Exploitation of this vulnerability could lead to undefined behavior by allowing BPF programs to operate on uninitialized iterator states, potentially causing data corruption or other unintended consequences.

Added: Jun 18, 2025, 12:27 PM
Updated: Jun 18, 2025, 12:27 PM

Vulnerability Rating

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