Linux Kernel Socket Lock Management Vulnerability in Timestamp Handling

Vulnerability

A vulnerability exists in the Linux kernel's handling of socket locks during timestamp processing, specifically within the 'skb_may_tx_timestamp()' function. This function may acquire the 'sk_callback_lock', which should not be held in interrupt context, as it can lead to a deadlock. Some drivers use a dedicated interrupt to manage transmission timestamps, and if the lock is already write-locked on the same CPU, a deadlock can occur. The vulnerability arises because the socket, referenced by the skb, remains valid until the skb is released. However, the 'sk_socket' and 'file' members can be set to NULL when the socket is closed, potentially before the timestamp is processed. If the pointer is accessed during this window, it can lead to improper handling of the timestamp. The issue has been addressed by modifying the lock management and using atomic operations to safely read and clear the socket pointers.

Impact

The vulnerability could lead to a deadlock situation, where the system becomes unresponsive due to locked resources, particularly in scenarios where drivers rely on interrupt-driven timestamp processing.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the Linux kernel official website.

Added: May 6, 2026, 2:00 PM
Updated: May 6, 2026, 2:00 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.5
remediation
7.7
relevance
7.6
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.