Skip to contentSkip to conversation

CVE-2025-37826: scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 8, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()

Add a NULL check for the returned hwq pointer by ufshcd_mcq_req_to_hwq().

This is similar to the fix in commit 74736103fb41 ("scsi: ufs: core: Fix ufshcd_abort_one racing issue").

The Linux kernel CVE team has assigned CVE-2025-37826 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.12.26 with commit eeab6618037be84e438e9d6ed5d9a53502faf81f
	Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.14.5 with commit 700128d67d57bb1de4251e563ab85202def36c50
	Issue introduced in 6.5 with commit ab248643d3d68b30f95ee9c238a5a20a06891204 and fixed in 6.15-rc4 with commit 08a966a917fe3d92150fa3cc15793ad5e57051eb

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-37826

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/ufs/core/ufshcd.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/eeab6618037be84e438e9d6ed5d9a53502faf81f
	https://git.kernel.org/stable/c/700128d67d57bb1de4251e563ab85202def36c50
	https://git.kernel.org/stable/c/08a966a917fe3d92150fa3cc15793ad5e57051eb