Linux Kernel Samples BPF Program Output Handling Resource Leak Vulnerability

Vulnerability

A resource leak vulnerability has been identified in the Linux kernel's BPF (Berkeley Packet Filter) sample programs. Specifically, the issue arises in the 'hbm' sample's 'run_bpf_prog' function, where a file pointer is opened but not properly closed. This oversight can lead to unintended consequences, such as resource exhaustion or file descriptor leaks. The vulnerability is present in the Linux kernel stable tree.

Impact

The vulnerability can cause a resource leak by failing to close an opened file pointer, potentially leading to file descriptor exhaustion.

Reproduction

The vulnerability can be reproduced by running the BPF 'hbm' sample program with a specific configuration that triggers the 'run_bpf_prog' function. The program will open a file pointer for writing but will not close it, causing a resource leak.

Remediation

Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability.

Added: Sep 16, 2025, 5:02 PM
Updated: Sep 16, 2025, 5:02 PM

Vulnerability Rating

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