Linux Kernel BPF Sockmap Ingress SKB Reference Count Race Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's BPF sockmap implementation. This issue arises from a race condition where socket buffers (SKBs) in the socket's PSock backlog can be accessed after the userspace has already consumed them, leading to a reference count drop to zero and causing a use-after-free scenario. The vulnerability is present in the stable versions of the Linux kernel.

Impact

Exploitation of this vulnerability causes a general protection fault, indicating a use-after-free condition that can potentially be exploited to execute arbitrary code or cause a denial-of-service.

Reproduction

The vulnerability can be reproduced by using the 'test_progs' tool with the 'sockmap_listen' test. This will trigger the PSock backlog processing, where the race condition occurs by dequeuing SKBs that have already been freed by the userspace.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been fixed.

Added: Dec 9, 2025, 4:23 PM
Updated: Dec 10, 2025, 12:33 AM

Vulnerability Rating

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