Linux Kernel SCSI UFS NULL Pointer Dereference Vulnerability in Command Trace Function

Vulnerability

A vulnerability in the Linux kernel's SCSI UFS subsystem can lead to a NULL pointer dereference in the 'ufshcd_add_command_trace' function. This issue occurs when the 'ufshcd_mcq_req_to_hwq' function returns NULL, causing a crash by attempting to access a hardware queue's ID. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability causes a kernel crash due to a NULL pointer dereference.

Reproduction

The vulnerability can be reproduced by enabling the multi-queue (MCQ) feature in the UFS driver. When a command trace is added, the 'ufshcd_mcq_req_to_hwq' function may return NULL, leading to a crash when the code attempts to access the ID of the non-existent hardware queue. This can be observed in the kernel log, which will show a series of 'notify_die' messages indicating a fatal error caused by the NULL pointer dereference.

Remediation

The vulnerability has been addressed in the Linux kernel. Users can upgrade to the latest version to apply the fix.

Added: May 8, 2026, 6:54 PM
Updated: May 8, 2026, 6:54 PM

Vulnerability Rating

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