CVE-2026-93057: scsi: ufs: core: Avoid possible memory reclaim deadlock in TX EQTR context
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: core: Avoid possible memory reclaim deadlock in TX EQTR context
TX EQTR may run while devfreq gear scaling has quiesced the UFS tagset. In that context, functions ufshcd_tx_eqtr(), __ufshcd_tx_eqtr() and ufs_qcom_get_rx_fom() allocate memory with GFP_KERNEL. If direct reclaim is triggered, reclaim/writeback can depend on I/O to UFS device. Because the queue is quiesced, this can cause deadlock.
Use memalloc_noio_save/restore() in ufshcd_tx_eqtr() to cover all allocations in the TX EQTR call tree, including:
- params->eqtr_record in ufshcd_tx_eqtr()
- eqtr_data in __ufshcd_tx_eqtr()
- params in ufs_qcom_get_rx_fom()
This is preferred over tagging individual call sites with GFP_NOIO, as it automatically covers any future allocations added anywhere in the call tree without requiring each caller to be aware of this constraint.
[mkp: fix label as suggested by Bart]
The Linux kernel CVE team has assigned CVE-2026-93057 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 03e5d38e2f985d8d0b0a60508c0b422f664808e3 and fixed in 7.2.6 with commit a28a7d9b3bb116da788ae492c90465ec1a7fa6e8 Issue introduced in 7.1 with commit 03e5d38e2f985d8d0b0a60508c0b422f664808e3 and fixed in 7.3-rc1 with commit 760fc6f0e25a72832c2fcf37ecf5f1b770ec8374
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-2026-93057
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/ufs-txeq.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/a28a7d9b3bb116da788ae492c90465ec1a7fa6e8 https://git.kernel.org/stable/c/760fc6f0e25a72832c2fcf37ecf5f1b770ec8374