Linux Kernel BPF Sockmap Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's BPF sockmap implementation. During the teardown of a TCP connection, the 'tcp_bpf_sendmsg' function can inadvertently enqueue data onto the ingress message queue. This occurs while the teardown process is attempting to free the data, leading to a conflict. The issue arises because the 'sk_psock_queue_msg' function charges memory for the message, which must be released, creating a potential memory management problem.

Impact

Exploitation of this vulnerability can lead to a memory leak, where memory is not properly released, potentially causing increased memory usage and degradation of system performance over time.

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
5.3
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.