# CVE-2023-53387: scsi: ufs: core: Fix device management cmd timeout flow

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.16%, higher than 5% of CVEs (2026-12-02)
- Published: 2025-09-18T13:33:30.635Z
- Modified: 2026-08-05T09:13:50.499Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

scsi: ufs: core: Fix device management cmd timeout flow

In the UFS error handling flow, the host will send a device management cmd
(NOP OUT) to the device for link recovery. If this cmd times out and
clearing the doorbell fails, ufshcd_wait_for_dev_cmd() will do nothing and
return. hba->dev_cmd.complete struct is not set to NULL.

When this happens, if cmd has been completed by device, then we will call
complete() in __ufshcd_transfer_req_compl(). Because the complete struct is
allocated on the stack, the following crash will occur:

  ipanic_die+0x24/0x38 [mrdump]
  die+0x344/0x748
  arm64_notify_die+0x44/0x104
  do_debug_exception+0x104/0x1e0
  el1_dbg+0x38/0x54
  el1_sync_handler+0x40/0x88
  el1_sync+0x8c/0x140
  queued_spin_lock_slowpath+0x2e4/0x3c0
  __ufshcd_transfer_req_compl+0x3b0/0x1164
  ufshcd_trc_handler+0x15c/0x308
  ufshcd_host_reset_and_restore+0x54/0x260
  ufshcd_reset_and_restore+0x28c/0x57c
  ufshcd_err_handler+0xeb8/0x1b6c
  process_one_work+0x288/0x964
  worker_thread+0x4bc/0xc7c
  kthread+0x15c/0x264
  ret_from_fork+0x10/0x30

(As written by CVE List.)

## Affected

- Linux Linux: from f5c2976e0cb0f6236013bfb479868531b04f61d4 before cf45493432704786a0f8294c7723ad4eeb5fff24; from f5c2976e0cb0f6236013bfb479868531b04f61d4 before 3ffd2cd644e0f1eea01339831bac4b1054e8817c; from f5c2976e0cb0f6236013bfb479868531b04f61d4 before 36822124f9de200cedc2f42516301b50d386a6cd; 8841c1b02c8083e4451077a2b1f235bbfd0db105; from 5.18.16 before 5.19; 5.19 (not affected: before 5.19; from 6.1.16 up to 6.1.*; from 6.2.3 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: before 6.1.16; from 6.2 before 6.2.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/cf45493432704786a0f8294c7723ad4eeb5fff24> (patch)
- <https://git.kernel.org/stable/c/3ffd2cd644e0f1eea01339831bac4b1054e8817c> (patch)
- <https://git.kernel.org/stable/c/36822124f9de200cedc2f42516301b50d386a6cd> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53387 · Whole record: https://cve.day/CVE-2023-53387.json · Rebuilt by cve.day 2026-11-25T22:58:34.862Z
