CVE-2023-53387

Source
https://cve.org/CVERecord?id=CVE-2023-53387
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53387.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53387
Downstream
Published
2025-09-18T13:33:30.635Z
Modified
2026-04-02T09:44:06.859572Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
scsi: ufs: core: Fix device management cmd timeout flow
Details

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, ufshcdwaitfordevcmd() 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 _ufshcdtransferreqcompl(). Because the complete struct is allocated on the stack, the following crash will occur:

ipanicdie+0x24/0x38 [mrdump] die+0x344/0x748 arm64notifydie+0x44/0x104 dodebugexception+0x104/0x1e0 el1dbg+0x38/0x54 el1synchandler+0x40/0x88 el1sync+0x8c/0x140 queuedspinlockslowpath+0x2e4/0x3c0 _ufshcdtransferreqcompl+0x3b0/0x1164 ufshcdtrchandler+0x15c/0x308 ufshcdhostresetandrestore+0x54/0x260 ufshcdresetandrestore+0x28c/0x57c ufshcderrhandler+0xeb8/0x1b6c processonework+0x288/0x964 workerthread+0x4bc/0xc7c kthread+0x15c/0x264 retfromfork+0x10/0x30

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53387.json"
}
References

Affected packages

Git / 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
f5c2976e0cb0f6236013bfb479868531b04f61d4
Fixed
cf45493432704786a0f8294c7723ad4eeb5fff24
Fixed
3ffd2cd644e0f1eea01339831bac4b1054e8817c
Fixed
36822124f9de200cedc2f42516301b50d386a6cd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
8841c1b02c8083e4451077a2b1f235bbfd0db105

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53387.json"