# CVE-2023-52785: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:03.040Z
- Modified: 2026-06-17T06:43:34.700Z
- Weaknesses: CWE-362
- 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 racing issue between ufshcd_mcq_abort() and ISR

If command timeout happens and cq complete IRQ is raised at the same time,
ufshcd_mcq_abort clears lprb->cmd and a NULL pointer deref happens in the
ISR. Error log:

ufshcd_abort: Device abort task at tag 18
Unable to handle kernel NULL pointer dereference at virtual address
0000000000000108
pc : [0xffffffe27ef867ac] scsi_dma_unmap+0xc/0x44
lr : [0xffffffe27f1b898c] ufshcd_release_scsi_cmd+0x24/0x114

(As written by CVE List.)

## Affected

- Linux Linux: from f1304d4420777f82a1d844c606db3d9eca841765 before 8f15a7e3c054d960bbd1521110700450bbf798a1; from f1304d4420777f82a1d844c606db3d9eca841765 before f84d461f33a6b27304d468d9cfb56c0cefdb4ee7; from f1304d4420777f82a1d844c606db3d9eca841765 before 27900d7119c464b43cd9eac69c85884d17bae240; 6.5 (not affected: before 6.5; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 6.5 before 6.5.13; from 6.6 before 6.6.3; 6.7

## References

- <https://git.kernel.org/stable/c/8f15a7e3c054d960bbd1521110700450bbf798a1> (patch)
- <https://git.kernel.org/stable/c/f84d461f33a6b27304d468d9cfb56c0cefdb4ee7> (patch)
- <https://git.kernel.org/stable/c/27900d7119c464b43cd9eac69c85884d17bae240> (patch)

## Sources

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

---

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