{"id":"CVE-2026-99936","aliases":["CVE-2026-99936"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ufs: core: Fix a deadlock between clock scaling and device commands","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:18:26.206Z","modified":"2026-11-30T14:20:30.463Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"08b12cda6c44dc015bcc152613c35ee0ae8f37b9","fixed":"c378d4fdb6c7244c3458af886e2bab61f8f56d13","status":"affected"},{"type":"git","introduced":"08b12cda6c44dc015bcc152613c35ee0ae8f37b9","fixed":"2327df6d2a290af62a6da21b2ad301848bb86002","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c378d4fdb6c7244c3458af886e2bab61f8f56d13","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2327df6d2a290af62a6da21b2ad301848bb86002","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99936","url":"https://www.cve.org/CVERecord?id=CVE-2026-99936","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:26.206Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99936","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99936","licence":"Public domain","modified":"2026-11-30T14:20:30.463Z"}],"updatedAt":"2026-11-30T14:33:15.586Z","epss":{"score":0.00318,"percentile":0.26712,"date":"2026-12-01T12:00:22.000Z"}}