# CVE-2023-53760: scsi: ufs: core: mcq: Fix &hwq-\>cq\_lock deadlock issue

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-08T01:19:21.489Z
- **Modified:** 2026-06-17T06:46:01.333Z

## Who should check

- Anyone running Linux \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1; \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 948afc69615167a3c82430f99bfd046332b89912
- Anyone running Linux 6.3

## Description

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

scsi: ufs: core: mcq: Fix &hwq-\>cq\_lock deadlock issue

When ufshcd\_err\_handler() is executed, CQ event interrupt can enter waiting
for the same lock. This can happen in ufshcd\_handle\_mcq\_cq\_events() and
also in ufs\_mtk\_mcq\_intr(). The following warning message will be generated
when &hwq-\>cq\_lock is used in IRQ context with IRQ enabled. Use
ufshcd\_mcq\_poll\_cqe\_lock() with spin\_lock\_irqsave instead of spin\_lock to
resolve the deadlock issue.

\[name:lockdep&\]WARNING: inconsistent lock state
\[name:lockdep&\]--------------------------------
\[name:lockdep&\]inconsistent {IN-HARDIRQ-W} -\> {HARDIRQ-ON-W} usage.
\[name:lockdep&\]kworker/u16:4/260 \[HC0\[0\]:SC0\[0\]:HE1:SE1\] takes:
  ffffff8028444600 (&hwq-\>cq\_lock){?.-.}-{2:2}, at:
ufshcd\_mcq\_poll\_cqe\_lock+0x30/0xe0
\[name:lockdep&\]{IN-HARDIRQ-W} state was registered at:
  lock\_acquire+0x17c/0x33c
  \_raw\_spin\_lock+0x5c/0x7c
  ufshcd\_mcq\_poll\_cqe\_lock+0x30/0xe0
  ufs\_mtk\_mcq\_intr+0x60/0x1bc \[ufs\_mediatek\_mod\]
  \_\_handle\_irq\_event\_percpu+0x140/0x3ec
  handle\_irq\_event+0x50/0xd8
  handle\_fasteoi\_irq+0x148/0x2b0
  generic\_handle\_domain\_irq+0x4c/0x6c
  gic\_handle\_irq+0x58/0x134
  call\_on\_irq\_stack+0x40/0x74
  do\_interrupt\_handler+0x84/0xe4
  el1\_interrupt+0x3c/0x78
\<snip\>

Possible unsafe locking scenario:
       CPU0
       ----
  lock(&hwq-\>cq\_lock);
  \<Interrupt\>
    lock(&hwq-\>cq\_lock);
  \*\*\* DEADLOCK \*\*\*
2 locks held by kworker/u16:4/260:

\[name:lockdep&\]
 stack backtrace:
CPU: 7 PID: 260 Comm: kworker/u16:4 Tainted: G S      W  OE
6.1.17-mainline-android14-2-g277223301adb \#1
Workqueue: ufs\_eh\_wq\_0 ufshcd\_err\_handler

 Call trace:
  dump\_backtrace+0x10c/0x160
  show\_stack+0x20/0x30
  dump\_stack\_lvl+0x98/0xd8
  dump\_stack+0x20/0x60
  print\_usage\_bug+0x584/0x76c
  mark\_lock\_irq+0x488/0x510
  mark\_lock+0x1ec/0x25c
  \_\_lock\_acquire+0x4d8/0xffc
  lock\_acquire+0x17c/0x33c
  \_raw\_spin\_lock+0x5c/0x7c
  ufshcd\_mcq\_poll\_cqe\_lock+0x30/0xe0
  ufshcd\_poll+0x68/0x1b0
  ufshcd\_transfer\_req\_compl+0x9c/0xc8
  ufshcd\_err\_handler+0x3bc/0xea0
  process\_one\_work+0x2f4/0x7e8
  worker\_thread+0x234/0x450
  kthread+0x110/0x134
  ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1; \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 948afc69615167a3c82430f99bfd046332b89912 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 948afc69615167a3c82430f99bfd046332b89912 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-53760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53760.md
Affected: Linux >= ed975065c31c2a0372e13c19e8140b69814a98ba, < 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1; >= ed975065c31c2a0372e13c19e8140b69814a98ba, < 948afc69615167a3c82430f99bfd046332b89912; Linux 6.3
Fixed in: Linux 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1, Linux 948afc69615167a3c82430f99bfd046332b89912

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-53760 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1; \>= ed975065c31c2a0372e13c19e8140b69814a98ba, \< 948afc69615167a3c82430f99bfd046332b89912; Linux 6.3.

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

Yes. Fixed in Linux 2ce8c49c7b53e0a2258b833eeab16a6d78f732d1, Linux 948afc69615167a3c82430f99bfd046332b89912. Upgrade Linux to 948afc69615167a3c82430f99bfd046332b89912 or later.

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

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

- other: <https://git.kernel.org/stable/c/2ce8c49c7b53e0a2258b833eeab16a6d78f732d1>
- other: <https://git.kernel.org/stable/c/948afc69615167a3c82430f99bfd046332b89912>

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

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