# CVE-2026-53284: btrfs: only release the dirty pages io tree after successful writes

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-06-26T19:40:45.444Z
- **Modified:** 2026-10-30T13:19:15.680Z

## Who should check

- Anyone running Linux \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< ff49321d29770e2d41bec65b43099997af5d2eaa; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 7107b047e709ad258f7c29a342266a8e3653f370; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< d915195c2f57794ed8ec4bf131bcead4b5dc29c1; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 9ebb7eba1237dc198768b9c76506a79f924c82bb; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< df03d67dc63722845cb9fe59d815d1225b04fd54; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 4066c55e109475a06d18a1f127c939d551211956
- Anyone running Linux 3.19

## Description

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

btrfs: only release the dirty pages io tree after successful writes

\[WARNING\]
With extra warning on dirty extent buffers at umount (aka, the next
patch in the series), test case generic/388 can trigger the following
warning about dirty extent buffers at unmount time:

  BTRFS critical (device dm-2 state E): emergency shutdown
  BTRFS error (device dm-2 state E): error while writing out transaction: -30
  BTRFS warning (device dm-2 state E): Skipping commit of aborted transaction.
  BTRFS error (device dm-2 state EA): Transaction 9 aborted (error -30)
  BTRFS: error (device dm-2 state EA) in cleanup\_transaction:2068: errno=-30 Readonly filesystem
  BTRFS info (device dm-2 state EA): forced readonly
  BTRFS info (device dm-2 state EA): last unmount of filesystem 4fbf2e15-f941-49a0-bc7c-716315d2777c
  ------------\[ cut here \]------------
  WARNING: disk-io.c:3311 at invalidate\_and\_check\_btree\_folios+0xfd/0x1ca \[btrfs\], CPU\#8: umount/914368
  CPU: 8 UID: 0 PID: 914368 Comm: umount Tainted: G           OE       7.1.0-rc1-custom+ \#372 PREEMPT(full)  2de38db8d1deae71fde295430a0ff3ab98ccf596
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
  RIP: 0010:invalidate\_and\_check\_btree\_folios+0xfd/0x1ca \[btrfs\]
  Call Trace:
   \<TASK\>
   close\_ctree+0x52e/0x574 \[btrfs d2f0b1cd330d1287e7a9919d112eadfc0e914efd\]
   generic\_shutdown\_super+0x89/0x1a0
   kill\_anon\_super+0x16/0x40
   btrfs\_kill\_super+0x16/0x20 \[btrfs d2f0b1cd330d1287e7a9919d112eadfc0e914efd\]
   deactivate\_locked\_super+0x2d/0xb0
   cleanup\_mnt+0xdc/0x140
   task\_work\_run+0x5a/0xa0
   exit\_to\_user\_mode\_loop+0x123/0x4b0
   do\_syscall\_64+0x243/0x7c0
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30539776 owner 9 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30621696 owner 257 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30638080 owner 258 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30654464 owner 7 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30703616 owner 2 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30720000 owner 10 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30736384 owner 4 gen 9 refs 2 flags 0x7
  BTRFS warning (device dm-2 state EA): unable to release extent buffer 30752768 owner 11 gen 9 refs 2 flags 0x7

I'm using a stripped down version, which seems to trigger the warning
more reliably:

  \_fsstress\_pid=""
  workload()
  {
  	dmesg -C
  	mkfs.btrfs -f -K $dev \> /dev/null
  	echo 1 \> /sys/kernel/debug/clear\_warn\_once
  	mount $dev $mnt
  	$fsstress -w -n 1024 -p 4 -d $mnt &
  	\_fsstress\_pid=$!
  	sleep 0
  	$godown $mnt
  	pkill --echo -PIPE fsstress \> /dev/null
  	wait $\_fsstress\_pid
  	unset \_fsstress\_pid
  	umount $mnt

  	if dmesg \| grep -q "WARNING"; then
  		fail
  	fi
  }

  for (( i = 0; i \< $runtime; i++ )); do
  	echo "=== $i/$runtime ==="
  	workload
  done

\[CAUSE\]
Inside btrfs\_write\_and\_wait\_transaction(), we first try to write all
dirty ebs, then wait for them to finish.

After that we call btrfs\_extent\_io\_tree\_release() to free all
extent states from dirty\_pages io tree.

However if we hit an error from btrfs\_write\_marked\_extent(), then we
still call btrfs\_extent\_io\_tree\_release() to clear that dirty\_pages io
tree, which may contain dirty records that we haven't yet submitted.

Furthermore, the later transaction cleanup path will utilize that
dirty\_pages io tree to properly cleanup those dirty ebs, but since it's
already empty, no dirty ebs are properly cleaned up, thus will later
trigger the warnings inside invalidate\_btree\_folios().
---truncated---

## Affected and fixed versions

- Linux: \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< ff49321d29770e2d41bec65b43099997af5d2eaa; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 7107b047e709ad258f7c29a342266a8e3653f370; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< d915195c2f57794ed8ec4bf131bcead4b5dc29c1; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 9ebb7eba1237dc198768b9c76506a79f924c82bb; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< df03d67dc63722845cb9fe59d815d1225b04fd54; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 4066c55e109475a06d18a1f127c939d551211956 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-53284.md
Affected: Linux >= 663dfbb07774e0fe1049e8db3054a08500122f18, < ff49321d29770e2d41bec65b43099997af5d2eaa; >= 663dfbb07774e0fe1049e8db3054a08500122f18, < 7107b047e709ad258f7c29a342266a8e3653f370; >= 663dfbb07774e0fe1049e8db3054a08500122f18, < d915195c2f57794ed8ec4bf131bcead4b5dc29c1; >= 663dfbb07774e0fe1049e8d…
Fixed in: Linux 7107b047e709ad258f7c29a342266a8e3653f370, Linux 9ebb7eba1237dc198768b9c76506a79f924c82bb, Linux 4066c55e109475a06d18a1f127c939d551211956

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< ff49321d29770e2d41bec65b43099997af5d2eaa; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 7107b047e709ad258f7c29a342266a8e3653f370; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< d915195c2f57794ed8ec4bf131bcead4b5dc29c1; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 9ebb7eba1237dc198768b9c76506a79f924c82bb; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< df03d67dc63722845cb9fe59d815d1225b04fd54; \>= 663dfbb07774e0fe1049e8db3054a08500122f18, \< 4066c55e109475a06d18a1f127c939d551211956; Linux 3.19.

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

Yes. Fixed in Linux 7107b047e709ad258f7c29a342266a8e3653f370, Linux 9ebb7eba1237dc198768b9c76506a79f924c82bb, Linux 4066c55e109475a06d18a1f127c939d551211956. Upgrade Linux to 4066c55e109475a06d18a1f127c939d551211956 or later.

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

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

- patch: <https://git.kernel.org/stable/c/9ebb7eba1237dc198768b9c76506a79f924c82bb>
- patch: <https://git.kernel.org/stable/c/df03d67dc63722845cb9fe59d815d1225b04fd54>
- patch: <https://git.kernel.org/stable/c/4066c55e109475a06d18a1f127c939d551211956>
- other: <https://git.kernel.org/stable/c/ff49321d29770e2d41bec65b43099997af5d2eaa>
- other: <https://git.kernel.org/stable/c/7107b047e709ad258f7c29a342266a8e3653f370>
- other: <https://git.kernel.org/stable/c/d915195c2f57794ed8ec4bf131bcead4b5dc29c1>

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

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