CVE-2023-53387

published 18 Sep 2025 · updated 17 Nov 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cf45493432704786a0f8294c7723ad4eeb5fff24, Kernel 5.19, Kernel 36822124f9de200cedc2f42516301b50d386a6cd and 3 more.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=f5c2976e0cb0f6236013bfb479868531b04f61d4 <cf45493432704786a0f8294c7723ad4eeb5fff24, >=5.18.16 <5.19, >=f5c2976e0cb0f6236013bfb479868531b04f61d4 <36822124f9de200cedc2f42516301b50d386a6cd, >=f5c2976e0cb0f6236013bfb479868531b04f61d4 <3ffd2cd644e0f1eea01339831bac4b1054e8817c, =5.19, =8841c1b02c8083e4451077a2b1f235bbfd0db105cf45493432704786a0f8294c7723ad4eeb5fff24, 5.19, 36822124f9de200cedc2f42516301b50d386a6cd, 3ffd2cd644e0f1eea01339831bac4b1054e8817c
linux-kernel: Kernel>=5.19.0 <6.1.16, >=6.2.0 <6.2.3, >=5.18.16 <5.196.1.16, 6.2.3, 5.19

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-53387 severity on Zeptric[![CVE-2023-53387](https://zeptric.io/badge/cve/CVE-2023-53387.svg)](https://zeptric.io/cve/CVE-2023-53387)