Linux Kernel BPF Map Freeze Mutex Vulnerability During Memory Mapping Operations

Vulnerability

A vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) implementation has been addressed. The issue arose from holding the freeze_mutex during memory mapping operations of BPF map contents with writable permissions. This approach, while intended to prevent races between freezing and mapping operations, was overly broad and could lead to deadlocks. The vulnerability has been resolved by modifying the mutex handling: it is now held only during writeability checks, allowing the memory mapping process to proceed without unnecessary delays. If an error occurs during the mapping, the 'write active' counter is decremented, ensuring proper synchronization without the risk of deadlock.

Impact

The vulnerability could potentially lead to deadlocks, disrupting normal system operations by causing processes to hang indefinitely, waiting for resources that are no longer available.

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
3.5
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.