# CVE-2026-99936: scsi: ufs: core: Fix a deadlock between clock scaling and device commands

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:26.206Z
- Modified: 2026-11-30T14:20:30.463Z
- Assigned by: Linux

## Description

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

scsi: ufs: core: Fix a deadlock between clock scaling and device commands

Since commit 08b12cda6c44 ("scsi: ufs: core: Switch to
scsi_get_internal_cmd()"), device management commands go through
blk_execute_rq() on the pseudo SCSI device, which shares the tagset with
the logical units, while ufshcd_dev_man_lock() holds clk_scaling_lock for
reading.

ufshcd_clock_scaling_prepare() and ufshcd_pause_command_processing()
quiesce the tagset before taking clk_scaling_lock for writing. A device
management command holding the lock for reading at that point is never
dispatched and never times out, so the writer waits forever with all
logical units quiesced. On a Lenovo Legion Tab Y700 Gen 5 this ended in a
hung task panic.

Take clk_scaling_lock before quiescing the tagset, and in
ufshcd_clock_scaling_prepare() also wb_mutex, which is always taken before
clk_scaling_lock. Release them in the reverse order. Commit b52d695d0620
("scsi: ufs: core: Keep internal commands dispatchable during error
handling") fixed the same problem in the error handler.

(As written by CVE List.)

## Affected

- Linux Linux: from 08b12cda6c44dc015bcc152613c35ee0ae8f37b9 before c378d4fdb6c7244c3458af886e2bab61f8f56d13; from 08b12cda6c44dc015bcc152613c35ee0ae8f37b9 before 2327df6d2a290af62a6da21b2ad301848bb86002; 6.19 (not affected: before 6.19; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/c378d4fdb6c7244c3458af886e2bab61f8f56d13>
- <https://git.kernel.org/stable/c/2327df6d2a290af62a6da21b2ad301848bb86002>

## Sources

- CVE List: [CVE-2026-99936](https://www.cve.org/CVERecord?id=CVE-2026-99936), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99936](https://nvd.nist.gov/vuln/detail/CVE-2026-99936), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99936 · Whole record: https://cve.day/CVE-2026-99936.json · Rebuilt by cve.day 2026-11-30T14:33:15.586Z
