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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-09-18T13:33:30.635Z
- **Modified:** 2026-08-05T09:13:50.499Z

## Who should check

- Anyone running Linux \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< cf45493432704786a0f8294c7723ad4eeb5fff24; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 3ffd2cd644e0f1eea01339831bac4b1054e8817c; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 36822124f9de200cedc2f42516301b50d386a6cd; 8841c1b02c8083e4451077a2b1f235bbfd0db105; \>= 5.18.16, \< 5.19
- Anyone running Linux 5.19

## 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

## Affected and fixed versions

- Linux: \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< cf45493432704786a0f8294c7723ad4eeb5fff24; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 3ffd2cd644e0f1eea01339831bac4b1054e8817c; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 36822124f9de200cedc2f42516301b50d386a6cd; 8841c1b02c8083e4451077a2b1f235bbfd0db105; \>= 5.18.16, \< 5.19 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 5.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53387. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53387.md
Affected: Linux >= f5c2976e0cb0f6236013bfb479868531b04f61d4, < cf45493432704786a0f8294c7723ad4eeb5fff24; >= f5c2976e0cb0f6236013bfb479868531b04f61d4, < 3ffd2cd644e0f1eea01339831bac4b1054e8817c; >= f5c2976e0cb0f6236013bfb479868531b04f61d4, < 36822124f9de200cedc2f42516301b50d386a6cd; 8841c1b02c8083e4451077a2b1…
Fixed in: Linux 3ffd2cd644e0f1eea01339831bac4b1054e8817c, Linux 36822124f9de200cedc2f42516301b50d386a6cd, Linux 5.19

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53387 being exploited?

There is no confirmed exploitation: CVE-2023-53387 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53387?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53387?

Linux \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< cf45493432704786a0f8294c7723ad4eeb5fff24; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 3ffd2cd644e0f1eea01339831bac4b1054e8817c; \>= f5c2976e0cb0f6236013bfb479868531b04f61d4, \< 36822124f9de200cedc2f42516301b50d386a6cd; 8841c1b02c8083e4451077a2b1f235bbfd0db105; \>= 5.18.16, \< 5.19; Linux 5.19.

### Is there a fix for CVE-2023-53387?

Yes. Fixed in Linux 3ffd2cd644e0f1eea01339831bac4b1054e8817c, Linux 36822124f9de200cedc2f42516301b50d386a6cd, Linux 5.19. Upgrade Linux to 5.19 or later.

### How do I check if I'm affected by CVE-2023-53387?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53387>

HTML: <https://flawdb.com/CVE-2023-53387> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53387>
