# CVE-2026-23036: btrfs: release path before iget\_failed() in btrfs\_read\_locked\_inode()

> 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.24% (percentile 9, 2026-11-26)
- **Published:** 2026-01-31T11:42:30.782Z
- **Modified:** 2026-06-17T10:20:45.143Z

## Who should check

- Anyone running Linux \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 65241e3ddda60b53a4ee3ae12721fc9ee21d5827; \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 1e1f2055ad5a7a5d548789b334a4473a7665c418
- Anyone running Linux 6.13

## Description

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

btrfs: release path before iget\_failed() in btrfs\_read\_locked\_inode()

In btrfs\_read\_locked\_inode() if we fail to lookup the inode, we jump to
the 'out' label with a path that has a read locked leaf and then we call
iget\_failed(). This can result in a ABBA deadlock, since iget\_failed()
triggers inode eviction and that causes the release of the delayed inode,
which must lock the delayed inode's mutex, and a task updating a delayed
inode starts by taking the node's mutex and then modifying the inode's
subvolume btree.

Syzbot reported the following lockdep splat for this:

   ======================================================
   WARNING: possible circular locking dependency detected
   syzkaller \#0 Not tainted
   ------------------------------------------------------
   btrfs-cleaner/8725 is trying to acquire lock:
   ffff0000d6826a48 (&delayed\_node-\>mutex){+.+.}-{4:4}, at: \_\_btrfs\_release\_delayed\_node+0xa0/0x9b0 fs/btrfs/delayed-inode.c:290

   but task is already holding lock:
   ffff0000dbeba878 (btrfs-tree-00){++++}-{4:4}, at: btrfs\_tree\_read\_lock\_nested+0x44/0x2ec fs/btrfs/locking.c:145

   which lock already depends on the new lock.

   the existing dependency chain (in reverse order) is:

   -\> \#1 (btrfs-tree-00){++++}-{4:4}:
          \_\_lock\_release kernel/locking/lockdep.c:5574 \[inline\]
          lock\_release+0x198/0x39c kernel/locking/lockdep.c:5889
          up\_read+0x24/0x3c kernel/locking/rwsem.c:1632
          btrfs\_tree\_read\_unlock+0xdc/0x298 fs/btrfs/locking.c:169
          btrfs\_tree\_unlock\_rw fs/btrfs/locking.h:218 \[inline\]
          btrfs\_search\_slot+0xa6c/0x223c fs/btrfs/ctree.c:2133
          btrfs\_lookup\_inode+0xd8/0x38c fs/btrfs/inode-item.c:395
          \_\_btrfs\_update\_delayed\_inode+0x124/0xed0 fs/btrfs/delayed-inode.c:1032
          btrfs\_update\_delayed\_inode fs/btrfs/delayed-inode.c:1118 \[inline\]
          \_\_btrfs\_commit\_inode\_delayed\_items+0x15f8/0x1748 fs/btrfs/delayed-inode.c:1141
          \_\_btrfs\_run\_delayed\_items+0x1ac/0x514 fs/btrfs/delayed-inode.c:1176
          btrfs\_run\_delayed\_items\_nr+0x28/0x38 fs/btrfs/delayed-inode.c:1219
          flush\_space+0x26c/0xb68 fs/btrfs/space-info.c:828
          do\_async\_reclaim\_metadata\_space+0x110/0x364 fs/btrfs/space-info.c:1158
          btrfs\_async\_reclaim\_metadata\_space+0x90/0xd8 fs/btrfs/space-info.c:1226
          process\_one\_work+0x7e8/0x155c kernel/workqueue.c:3263
          process\_scheduled\_works kernel/workqueue.c:3346 \[inline\]
          worker\_thread+0x958/0xed8 kernel/workqueue.c:3427
          kthread+0x5fc/0x75c kernel/kthread.c:463
          ret\_from\_fork+0x10/0x20 arch/arm64/kernel/entry.S:844

   -\> \#0 (&delayed\_node-\>mutex){+.+.}-{4:4}:
          check\_prev\_add kernel/locking/lockdep.c:3165 \[inline\]
          check\_prevs\_add kernel/locking/lockdep.c:3284 \[inline\]
          validate\_chain kernel/locking/lockdep.c:3908 \[inline\]
          \_\_lock\_acquire+0x1774/0x30a4 kernel/locking/lockdep.c:5237
          lock\_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868
          \_\_mutex\_lock\_common+0x1d0/0x2678 kernel/locking/mutex.c:598
          \_\_mutex\_lock kernel/locking/mutex.c:760 \[inline\]
          mutex\_lock\_nested+0x2c/0x38 kernel/locking/mutex.c:812
          \_\_btrfs\_release\_delayed\_node+0xa0/0x9b0 fs/btrfs/delayed-inode.c:290
          btrfs\_release\_delayed\_node fs/btrfs/delayed-inode.c:315 \[inline\]
          btrfs\_remove\_delayed\_node+0x68/0x84 fs/btrfs/delayed-inode.c:1326
          btrfs\_evict\_inode+0x578/0xe28 fs/btrfs/inode.c:5587
          evict+0x414/0x928 fs/inode.c:810
          iput\_final fs/inode.c:1914 \[inline\]
          iput+0x95c/0xad4 fs/inode.c:1966
          iget\_failed+0xec/0x134 fs/bad\_inode.c:248
          btrfs\_read\_locked\_inode+0xe1c/0x1234 fs/btrfs/inode.c:4101
          btrfs\_iget+0x1b0/0x264 fs/btrfs/inode.c:5837
          btrfs\_run\_defrag\_inode fs/btrfs/defrag.c:237 \[inline\]
          btrfs\_run\_defrag\_inodes+0x520/0xdc4 fs/btrf
---truncated---

## Affected and fixed versions

- Linux: \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 65241e3ddda60b53a4ee3ae12721fc9ee21d5827; \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 1e1f2055ad5a7a5d548789b334a4473a7665c418 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 1e1f2055ad5a7a5d548789b334a4473a7665c418 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23036.md
Affected: Linux >= 69673992b1aea5540199d9b8b658ede72f55a6cf, < 65241e3ddda60b53a4ee3ae12721fc9ee21d5827; >= 69673992b1aea5540199d9b8b658ede72f55a6cf, < 1e1f2055ad5a7a5d548789b334a4473a7665c418; Linux 6.13
Fixed in: Linux 65241e3ddda60b53a4ee3ae12721fc9ee21d5827, Linux 1e1f2055ad5a7a5d548789b334a4473a7665c418

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-2026-23036 being exploited?

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

### How serious is CVE-2026-23036?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-23036?

Linux \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 65241e3ddda60b53a4ee3ae12721fc9ee21d5827; \>= 69673992b1aea5540199d9b8b658ede72f55a6cf, \< 1e1f2055ad5a7a5d548789b334a4473a7665c418; Linux 6.13.

### Is there a fix for CVE-2026-23036?

Yes. Fixed in Linux 65241e3ddda60b53a4ee3ae12721fc9ee21d5827, Linux 1e1f2055ad5a7a5d548789b334a4473a7665c418. Upgrade Linux to 1e1f2055ad5a7a5d548789b334a4473a7665c418 or later.

### How do I check if I'm affected by CVE-2026-23036?

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/65241e3ddda60b53a4ee3ae12721fc9ee21d5827>
- other: <https://git.kernel.org/stable/c/1e1f2055ad5a7a5d548789b334a4473a7665c418>

## 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-2026-23036>

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