# CVE-2023-54224: btrfs: fix lockdep splat and potential deadlock after failure running delayed items

> 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-28)
- **Published:** 2025-12-30T12:11:18.076Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 32247b9526bfdaeef85f7339d9b4f913c7370f92; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 36d918da3f1bf749178c7daf471a3be1730ed3ca; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< e110f8911ddb93e6f55da14ccbbe705397b30d0b
- Anyone running Linux 5.15

## Description

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

btrfs: fix lockdep splat and potential deadlock after failure running delayed items

When running delayed items we are holding a delayed node's mutex and then
we will attempt to modify a subvolume btree to insert/update/delete the
delayed items. However if have an error during the insertions for example,
btrfs\_insert\_delayed\_items() may return with a path that has locked extent
buffers (a leaf at the very least), and then we attempt to release the
delayed node at \_\_btrfs\_run\_delayed\_items(), which requires taking the
delayed node's mutex, causing an ABBA type of deadlock. This was reported
by syzbot and the lockdep splat is the following:

  WARNING: possible circular locking dependency detected
  6.5.0-rc7-syzkaller-00024-g93f5de5f648d \#0 Not tainted
  ------------------------------------------------------
  syz-executor.2/13257 is trying to acquire lock:
  ffff88801835c0c0 (&delayed\_node-\>mutex){+.+.}-{3:3}, at: \_\_btrfs\_release\_delayed\_node+0x9a/0xaa0 fs/btrfs/delayed-inode.c:256

  but task is already holding lock:
  ffff88802a5ab8e8 (btrfs-tree-00){++++}-{3:3}, at: \_\_btrfs\_tree\_lock+0x3c/0x2a0 fs/btrfs/locking.c:198

  which lock already depends on the new lock.

  the existing dependency chain (in reverse order) is:

  -\> \#1 (btrfs-tree-00){++++}-{3:3}:
         \_\_lock\_release kernel/locking/lockdep.c:5475 \[inline\]
         lock\_release+0x36f/0x9d0 kernel/locking/lockdep.c:5781
         up\_write+0x79/0x580 kernel/locking/rwsem.c:1625
         btrfs\_tree\_unlock\_rw fs/btrfs/locking.h:189 \[inline\]
         btrfs\_unlock\_up\_safe+0x179/0x3b0 fs/btrfs/locking.c:239
         search\_leaf fs/btrfs/ctree.c:1986 \[inline\]
         btrfs\_search\_slot+0x2511/0x2f80 fs/btrfs/ctree.c:2230
         btrfs\_insert\_empty\_items+0x9c/0x180 fs/btrfs/ctree.c:4376
         btrfs\_insert\_delayed\_item fs/btrfs/delayed-inode.c:746 \[inline\]
         btrfs\_insert\_delayed\_items fs/btrfs/delayed-inode.c:824 \[inline\]
         \_\_btrfs\_commit\_inode\_delayed\_items+0xd24/0x2410 fs/btrfs/delayed-inode.c:1111
         \_\_btrfs\_run\_delayed\_items+0x1db/0x430 fs/btrfs/delayed-inode.c:1153
         flush\_space+0x269/0xe70 fs/btrfs/space-info.c:723
         btrfs\_async\_reclaim\_metadata\_space+0x106/0x350 fs/btrfs/space-info.c:1078
         process\_one\_work+0x92c/0x12c0 kernel/workqueue.c:2600
         worker\_thread+0xa63/0x1210 kernel/workqueue.c:2751
         kthread+0x2b8/0x350 kernel/kthread.c:389
         ret\_from\_fork+0x2e/0x60 arch/x86/kernel/process.c:145
         ret\_from\_fork\_asm+0x11/0x20 arch/x86/entry/entry\_64.S:304

  -\> \#0 (&delayed\_node-\>mutex){+.+.}-{3:3}:
         check\_prev\_add kernel/locking/lockdep.c:3142 \[inline\]
         check\_prevs\_add kernel/locking/lockdep.c:3261 \[inline\]
         validate\_chain kernel/locking/lockdep.c:3876 \[inline\]
         \_\_lock\_acquire+0x39ff/0x7f70 kernel/locking/lockdep.c:5144
         lock\_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5761
         \_\_mutex\_lock\_common+0x1d8/0x2530 kernel/locking/mutex.c:603
         \_\_mutex\_lock kernel/locking/mutex.c:747 \[inline\]
         mutex\_lock\_nested+0x1b/0x20 kernel/locking/mutex.c:799
         \_\_btrfs\_release\_delayed\_node+0x9a/0xaa0 fs/btrfs/delayed-inode.c:256
         btrfs\_release\_delayed\_node fs/btrfs/delayed-inode.c:281 \[inline\]
         \_\_btrfs\_run\_delayed\_items+0x2b5/0x430 fs/btrfs/delayed-inode.c:1156
         btrfs\_commit\_transaction+0x859/0x2ff0 fs/btrfs/transaction.c:2276
         btrfs\_sync\_file+0xf56/0x1330 fs/btrfs/file.c:1988
         vfs\_fsync\_range fs/sync.c:188 \[inline\]
         vfs\_fsync fs/sync.c:202 \[inline\]
         do\_fsync fs/sync.c:212 \[inline\]
         \_\_do\_sys\_fsync fs/sync.c:220 \[inline\]
         \_\_se\_sys\_fsync fs/sync.c:218 \[inline\]
         \_\_x64\_sys\_fsync+0x196/0x1e0 fs/sync.c:218
         do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
         do\_syscall\_64+0x41/0xc0 arch/x86/entry/common.c:80
         entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

  other info that
---truncated---

## Affected and fixed versions

- Linux: \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 32247b9526bfdaeef85f7339d9b4f913c7370f92; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 36d918da3f1bf749178c7daf471a3be1730ed3ca; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< e110f8911ddb93e6f55da14ccbbe705397b30d0b (cvelist)
- Linux: 5.15 (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-54224. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54224.md
Affected: Linux >= 506650dcb3a716ad98681f7091ba2f8e748c04b8, < 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6; >= 506650dcb3a716ad98681f7091ba2f8e748c04b8, < 32247b9526bfdaeef85f7339d9b4f913c7370f92; >= 506650dcb3a716ad98681f7091ba2f8e748c04b8, < 36d918da3f1bf749178c7daf471a3be1730ed3ca; >= 506650dcb3a716ad98681f7…
Fixed in: Linux 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6, Linux 32247b9526bfdaeef85f7339d9b4f913c7370f92, Linux 36d918da3f1bf749178c7daf471a3be1730ed3ca

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

There is no confirmed exploitation: CVE-2023-54224 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-28).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 32247b9526bfdaeef85f7339d9b4f913c7370f92; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< 36d918da3f1bf749178c7daf471a3be1730ed3ca; \>= 506650dcb3a716ad98681f7091ba2f8e748c04b8, \< e110f8911ddb93e6f55da14ccbbe705397b30d0b; Linux 5.15.

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

Yes. Fixed in Linux 779c3cf2749c7a7bad6f839cb2954a25ba92f4d6, Linux 32247b9526bfdaeef85f7339d9b4f913c7370f92, Linux 36d918da3f1bf749178c7daf471a3be1730ed3ca. No fix listed yet: follow the vendor advisory.

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

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/779c3cf2749c7a7bad6f839cb2954a25ba92f4d6>
- other: <https://git.kernel.org/stable/c/32247b9526bfdaeef85f7339d9b4f913c7370f92>
- other: <https://git.kernel.org/stable/c/36d918da3f1bf749178c7daf471a3be1730ed3ca>
- other: <https://git.kernel.org/stable/c/e110f8911ddb93e6f55da14ccbbe705397b30d0b>

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

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