{"id":"CVE-2026-99936","summary":"scsi: ufs: core: Fix a deadlock between clock scaling and device commands","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: core: Fix a deadlock between clock scaling and device commands\n\nSince commit 08b12cda6c44 (\"scsi: ufs: core: Switch to\nscsi_get_internal_cmd()\"), device management commands go through\nblk_execute_rq() on the pseudo SCSI device, which shares the tagset with\nthe logical units, while ufshcd_dev_man_lock() holds clk_scaling_lock for\nreading.\n\nufshcd_clock_scaling_prepare() and ufshcd_pause_command_processing()\nquiesce the tagset before taking clk_scaling_lock for writing. A device\nmanagement command holding the lock for reading at that point is never\ndispatched and never times out, so the writer waits forever with all\nlogical units quiesced. On a Lenovo Legion Tab Y700 Gen 5 this ended in a\nhung task panic.\n\nTake clk_scaling_lock before quiescing the tagset, and in\nufshcd_clock_scaling_prepare() also wb_mutex, which is always taken before\nclk_scaling_lock. Release them in the reverse order. Commit b52d695d0620\n(\"scsi: ufs: core: Keep internal commands dispatchable during error\nhandling\") fixed the same problem in the error handler.","modified":"2026-12-01T21:02:41.468732696Z","published":"2026-11-30T13:18:26.206Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99936.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2327df6d2a290af62a6da21b2ad301848bb86002"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c378d4fdb6c7244c3458af886e2bab61f8f56d13"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99936.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99936"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"08b12cda6c44dc015bcc152613c35ee0ae8f37b9"},{"fixed":"c378d4fdb6c7244c3458af886e2bab61f8f56d13"},{"fixed":"2327df6d2a290af62a6da21b2ad301848bb86002"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99936.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99936.json"}}],"schema_version":"1.9.2"}