# CVE-2023-53860: dm: don't attempt to queue IO under RCU protection

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-09T01:30:27.903Z
- **Modified:** 2026-08-05T09:16:25.476Z

## Who should check

- Anyone running Linux \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< d7b2abd87d1fcdb47811f90090a363e7ca15cb14; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< 699775e9338adcd4eaedea000d32c60250c3114d; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< a9ce385344f916cd1c36a33905e564f5581beae9
- Anyone running Linux 5.19

## Description

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

dm: don't attempt to queue IO under RCU protection

dm looks up the table for IO based on the request type, with an
assumption that if the request is marked REQ\_NOWAIT, it's fine to
attempt to submit that IO while under RCU read lock protection. This
is not OK, as REQ\_NOWAIT just means that we should not be sleeping
waiting on other IO, it does not mean that we can't potentially
schedule.

A simple test case demonstrates this quite nicely:

int main(int argc, char \*argv\[\])
{
        struct iovec iov;
        int fd;

        fd = open("/dev/dm-0", O\_RDONLY \| O\_DIRECT);
        posix\_memalign(&iov.iov\_base, 4096, 4096);
        iov.iov\_len = 4096;
        preadv2(fd, &iov, 1, 0, RWF\_NOWAIT);
        return 0;
}

which will instantly spew:

BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306
in\_atomic(): 0, irqs\_disabled(): 0, non\_block: 0, pid: 5580, name: dm-nowait
preempt\_count: 0, expected: 0
RCU nest depth: 1, expected: 0
INFO: lockdep is turned off.
CPU: 7 PID: 5580 Comm: dm-nowait Not tainted 6.6.0-rc1-g39956d2dcd81 \#132
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x11d/0x1b0
 \_\_might\_resched+0x3c3/0x5e0
 ? preempt\_count\_sub+0x150/0x150
 mempool\_alloc+0x1e2/0x390
 ? mempool\_resize+0x7d0/0x7d0
 ? lock\_sync+0x190/0x190
 ? lock\_release+0x4b7/0x670
 ? internal\_get\_user\_pages\_fast+0x868/0x2d40
 bio\_alloc\_bioset+0x417/0x8c0
 ? bvec\_alloc+0x200/0x200
 ? internal\_get\_user\_pages\_fast+0xb8c/0x2d40
 bio\_alloc\_clone+0x53/0x100
 dm\_submit\_bio+0x27f/0x1a20
 ? lock\_release+0x4b7/0x670
 ? blk\_try\_enter\_queue+0x1a0/0x4d0
 ? dm\_dax\_direct\_access+0x260/0x260
 ? rcu\_is\_watching+0x12/0xb0
 ? blk\_try\_enter\_queue+0x1cc/0x4d0
 \_\_submit\_bio+0x239/0x310
 ? \_\_bio\_queue\_enter+0x700/0x700
 ? kvm\_clock\_get\_cycles+0x40/0x60
 ? ktime\_get+0x285/0x470
 submit\_bio\_noacct\_nocheck+0x4d9/0xb80
 ? should\_fail\_request+0x80/0x80
 ? preempt\_count\_sub+0x150/0x150
 ? lock\_release+0x4b7/0x670
 ? \_\_bio\_add\_page+0x143/0x2d0
 ? iov\_iter\_revert+0x27/0x360
 submit\_bio\_noacct+0x53e/0x1b30
 submit\_bio\_wait+0x10a/0x230
 ? submit\_bio\_wait\_endio+0x40/0x40
 \_\_blkdev\_direct\_IO\_simple+0x4f8/0x780
 ? blkdev\_bio\_end\_io+0x4c0/0x4c0
 ? stack\_trace\_save+0x90/0xc0
 ? \_\_bio\_clone+0x3c0/0x3c0
 ? lock\_release+0x4b7/0x670
 ? lock\_sync+0x190/0x190
 ? atime\_needs\_update+0x3bf/0x7e0
 ? timestamp\_truncate+0x21b/0x2d0
 ? inode\_owner\_or\_capable+0x240/0x240
 blkdev\_direct\_IO.part.0+0x84a/0x1810
 ? rcu\_is\_watching+0x12/0xb0
 ? lock\_release+0x4b7/0x670
 ? blkdev\_read\_iter+0x40d/0x530
 ? reacquire\_held\_locks+0x4e0/0x4e0
 ? \_\_blkdev\_direct\_IO\_simple+0x780/0x780
 ? rcu\_is\_watching+0x12/0xb0
 ? \_\_mark\_inode\_dirty+0x297/0xd50
 ? preempt\_count\_add+0x72/0x140
 blkdev\_read\_iter+0x2a4/0x530
 do\_iter\_readv\_writev+0x2f2/0x3c0
 ? generic\_copy\_file\_range+0x1d0/0x1d0
 ? fsnotify\_perm.part.0+0x25d/0x630
 ? security\_file\_permission+0xd8/0x100
 do\_iter\_read+0x31b/0x880
 ? import\_iovec+0x10b/0x140
 vfs\_readv+0x12d/0x1a0
 ? vfs\_iter\_read+0xb0/0xb0
 ? rcu\_is\_watching+0x12/0xb0
 ? rcu\_is\_watching+0x12/0xb0
 ? lock\_release+0x4b7/0x670
 do\_preadv+0x1b3/0x260
 ? do\_readv+0x370/0x370
 \_\_x64\_sys\_preadv2+0xef/0x150
 do\_syscall\_64+0x39/0xb0
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
RIP: 0033:0x7f5af41ad806
Code: 41 54 41 89 fc 55 44 89 c5 53 48 89 cb 48 83 ec 18 80 3d e4 dd 0d 00 00 74 7a 45 89 c1 49 89 ca 45 31 c0 b8 47 01 00 00 0f 05 \<48\> 3d 00 f0 ff ff 0f 87 be 00 00 00 48 85 c0 79 4a 48 8b 0d da 55
RSP: 002b:00007ffd3145c7f0 EFLAGS: 00000246 ORIG\_RAX: 0000000000000147
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5af41ad806
RDX: 0000000000000001 RSI: 00007ffd3145c850 RDI: 0000000000000003
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000008
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007ffd3145c850 R14: 000055f5f0431dd8 R15: 0000000000000001
 \</TASK\>

where in fact it is
---truncated---

## Affected and fixed versions

- Linux: \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< d7b2abd87d1fcdb47811f90090a363e7ca15cb14; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< 699775e9338adcd4eaedea000d32c60250c3114d; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< a9ce385344f916cd1c36a33905e564f5581beae9 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53860.md
Affected: Linux >= 563a225c9fd207326c2a2af9d59b4097cb31ce70, < d7b2abd87d1fcdb47811f90090a363e7ca15cb14; >= 563a225c9fd207326c2a2af9d59b4097cb31ce70, < 699775e9338adcd4eaedea000d32c60250c3114d; >= 563a225c9fd207326c2a2af9d59b4097cb31ce70, < a9ce385344f916cd1c36a33905e564f5581beae9; Linux 5.19
Fixed in: Linux 699775e9338adcd4eaedea000d32c60250c3114d

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

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

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

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

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

Linux \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< d7b2abd87d1fcdb47811f90090a363e7ca15cb14; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< 699775e9338adcd4eaedea000d32c60250c3114d; \>= 563a225c9fd207326c2a2af9d59b4097cb31ce70, \< a9ce385344f916cd1c36a33905e564f5581beae9; Linux 5.19.

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

Yes. Fixed in Linux 699775e9338adcd4eaedea000d32c60250c3114d. No fix listed yet: follow the vendor advisory.

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

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/d7b2abd87d1fcdb47811f90090a363e7ca15cb14>
- other: <https://git.kernel.org/stable/c/699775e9338adcd4eaedea000d32c60250c3114d>
- other: <https://git.kernel.org/stable/c/a9ce385344f916cd1c36a33905e564f5581beae9>

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

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