# CVE-2023-53730: blk-iocost: use spin\_lock\_irqsave in adjust\_inuse\_and\_calc\_cost

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-22T13:23:58.419Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8563b58a4360e648ce18f0e98a75a4be51667431; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< eb120c0aff5ceab9c9c46b87f302465bbf2bbaed; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8ceeb3fc86a83700bb1585c189006080a47e8506; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 3376c4fe2db4aea2dc721a27a999c41fdb45b54f; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8d211554679d0b23702bd32ba04aeac0c1c4f660
- Anyone running Linux 5.10

## Description

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

blk-iocost: use spin\_lock\_irqsave in adjust\_inuse\_and\_calc\_cost

adjust\_inuse\_and\_calc\_cost() use spin\_lock\_irq() and IRQ will be enabled
when unlock. DEADLOCK might happen if we have held other locks and disabled
IRQ before invoking it.

Fix it by using spin\_lock\_irqsave() instead, which can keep IRQ state
consistent with before when unlock.

  ================================
  WARNING: inconsistent lock state
  5.10.0-02758-g8e5f91fd772f \#26 Not tainted
  --------------------------------
  inconsistent {IN-HARDIRQ-W} -\> {HARDIRQ-ON-W} usage.
  kworker/2:3/388 \[HC0\[0\]:SC0\[0\]:HE0:SE1\] takes:
  ffff888118c00c28 (&bfqd-\>lock){?.-.}-{2:2}, at: spin\_lock\_irq
  ffff888118c00c28 (&bfqd-\>lock){?.-.}-{2:2}, at: bfq\_bio\_merge+0x141/0x390
  {IN-HARDIRQ-W} state was registered at:
    \_\_lock\_acquire+0x3d7/0x1070
    lock\_acquire+0x197/0x4a0
    \_\_raw\_spin\_lock\_irqsave
    \_raw\_spin\_lock\_irqsave+0x3b/0x60
    bfq\_idle\_slice\_timer\_body
    bfq\_idle\_slice\_timer+0x53/0x1d0
    \_\_run\_hrtimer+0x477/0xa70
    \_\_hrtimer\_run\_queues+0x1c6/0x2d0
    hrtimer\_interrupt+0x302/0x9e0
    local\_apic\_timer\_interrupt
    \_\_sysvec\_apic\_timer\_interrupt+0xfd/0x420
    run\_sysvec\_on\_irqstack\_cond
    sysvec\_apic\_timer\_interrupt+0x46/0xa0
    asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20
  irq event stamp: 837522
  hardirqs last  enabled at (837521): \[\<ffffffff84b9419d\>\] \_\_raw\_spin\_unlock\_irqrestore
  hardirqs last  enabled at (837521): \[\<ffffffff84b9419d\>\] \_raw\_spin\_unlock\_irqrestore+0x3d/0x40
  hardirqs last disabled at (837522): \[\<ffffffff84b93fa3\>\] \_\_raw\_spin\_lock\_irq
  hardirqs last disabled at (837522): \[\<ffffffff84b93fa3\>\] \_raw\_spin\_lock\_irq+0x43/0x50
  softirqs last  enabled at (835852): \[\<ffffffff84e00558\>\] \_\_do\_softirq+0x558/0x8ec
  softirqs last disabled at (835845): \[\<ffffffff84c010ff\>\] asm\_call\_irq\_on\_stack+0xf/0x20

  other info that might help us debug this:
   Possible unsafe locking scenario:

         CPU0
         ----
    lock(&bfqd-\>lock);
    \<Interrupt\>
      lock(&bfqd-\>lock);

   \*\*\* DEADLOCK \*\*\*

  3 locks held by kworker/2:3/388:
   \#0: ffff888107af0f38 ((wq\_completion)kthrotld){+.+.}-{0:0}, at: process\_one\_work+0x742/0x13f0
   \#1: ffff8881176bfdd8 ((work\_completion)(&td-\>dispatch\_work)){+.+.}-{0:0}, at: process\_one\_work+0x777/0x13f0
   \#2: ffff888118c00c28 (&bfqd-\>lock){?.-.}-{2:2}, at: spin\_lock\_irq
   \#2: ffff888118c00c28 (&bfqd-\>lock){?.-.}-{2:2}, at: bfq\_bio\_merge+0x141/0x390

  stack backtrace:
  CPU: 2 PID: 388 Comm: kworker/2:3 Not tainted 5.10.0-02758-g8e5f91fd772f \#26
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
  Workqueue: kthrotld blk\_throtl\_dispatch\_work\_fn
  Call Trace:
   \_\_dump\_stack lib/dump\_stack.c:77 \[inline\]
   dump\_stack+0x107/0x167
   print\_usage\_bug
   valid\_state
   mark\_lock\_irq.cold+0x32/0x3a
   mark\_lock+0x693/0xbc0
   mark\_held\_locks+0x9e/0xe0
   \_\_trace\_hardirqs\_on\_caller
   lockdep\_hardirqs\_on\_prepare.part.0+0x151/0x360
   trace\_hardirqs\_on+0x5b/0x180
   \_\_raw\_spin\_unlock\_irq
   \_raw\_spin\_unlock\_irq+0x24/0x40
   spin\_unlock\_irq
   adjust\_inuse\_and\_calc\_cost+0x4fb/0x970
   ioc\_rqos\_merge+0x277/0x740
   \_\_rq\_qos\_merge+0x62/0xb0
   rq\_qos\_merge
   bio\_attempt\_back\_merge+0x12c/0x4a0
   blk\_mq\_sched\_try\_merge+0x1b6/0x4d0
   bfq\_bio\_merge+0x24a/0x390
   \_\_blk\_mq\_sched\_bio\_merge+0xa6/0x460
   blk\_mq\_sched\_bio\_merge
   blk\_mq\_submit\_bio+0x2e7/0x1ee0
   \_\_submit\_bio\_noacct\_mq+0x175/0x3b0
   submit\_bio\_noacct+0x1fb/0x270
   blk\_throtl\_dispatch\_work\_fn+0x1ef/0x2b0
   process\_one\_work+0x83e/0x13f0
   process\_scheduled\_works
   worker\_thread+0x7e3/0xd80
   kthread+0x353/0x470
   ret\_from\_fork+0x1f/0x30

## Affected and fixed versions

- Linux: \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8563b58a4360e648ce18f0e98a75a4be51667431; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< eb120c0aff5ceab9c9c46b87f302465bbf2bbaed; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8ceeb3fc86a83700bb1585c189006080a47e8506; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 3376c4fe2db4aea2dc721a27a999c41fdb45b54f; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8d211554679d0b23702bd32ba04aeac0c1c4f660 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53730.md
Affected: Linux >= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, < 8563b58a4360e648ce18f0e98a75a4be51667431; >= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, < eb120c0aff5ceab9c9c46b87f302465bbf2bbaed; >= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, < 8ceeb3fc86a83700bb1585c189006080a47e8506; >= b0853ab4a238c54b8f97ca7…
Fixed in: Linux 8563b58a4360e648ce18f0e98a75a4be51667431, Linux 8ceeb3fc86a83700bb1585c189006080a47e8506, Linux 9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3, Linux 3376c4fe2db4aea2dc721a27a999c41fdb45b54f, Linux 8d211554679d0b23702bd32ba04aeac0c1c4f660

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8563b58a4360e648ce18f0e98a75a4be51667431; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< eb120c0aff5ceab9c9c46b87f302465bbf2bbaed; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8ceeb3fc86a83700bb1585c189006080a47e8506; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 3376c4fe2db4aea2dc721a27a999c41fdb45b54f; \>= b0853ab4a238c54b8f97ca7dde1ae156e2bbd5e4, \< 8d211554679d0b23702bd32ba04aeac0c1c4f660; Linux 5.10.

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

Yes. Fixed in Linux 8563b58a4360e648ce18f0e98a75a4be51667431, Linux 8ceeb3fc86a83700bb1585c189006080a47e8506, Linux 9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3, Linux 3376c4fe2db4aea2dc721a27a999c41fdb45b54f, Linux 8d211554679d0b23702bd32ba04aeac0c1c4f660. Upgrade Linux to 8d211554679d0b23702bd32ba04aeac0c1c4f660 or later.

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

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/8563b58a4360e648ce18f0e98a75a4be51667431>
- other: <https://git.kernel.org/stable/c/eb120c0aff5ceab9c9c46b87f302465bbf2bbaed>
- other: <https://git.kernel.org/stable/c/8ceeb3fc86a83700bb1585c189006080a47e8506>
- other: <https://git.kernel.org/stable/c/9279a1b74ad98039d5d44d26b9e7a9cfe655b6d3>
- other: <https://git.kernel.org/stable/c/3376c4fe2db4aea2dc721a27a999c41fdb45b54f>
- other: <https://git.kernel.org/stable/c/8d211554679d0b23702bd32ba04aeac0c1c4f660>

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

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