# CVE-2026-43299: btrfs: do not ASSERT() when the fs flips RO inside btrfs\_repair\_io\_failure()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-08 · Modified: 2026-10-30
- Aliases: UBUNTU-CVE-2026-43299, DEBIAN-CVE-2026-43299, CGA-224q-cqm2-jw43, CGA-29p3-rj7c-mrq4, CGA-2fqq-fg4m-hppp, CGA-3f6x-xg6f-7wj3, CGA-3f7m-c9q2-5qgw, CGA-3fgr-hw82-xqc7, CGA-3j9q-qp63-h6hx, CGA-45g2-5x3r-c9xm, CGA-48mm-hqxh-g8c2, CGA-4fpr-g4m7-22fx, CGA-4m96-mf86-cr8c, CGA-4wgj-vx6q-529w, CGA-4xj2-4ppc-3crw, CGA-59vh-7hfh-h53f, CGA-5fhj-fjfv-w559, CGA-5w24-qhg3-p44v, CGA-63fm-h8wj-2p7j, CGA-67jr-mpr3-835g, CGA-6qqg-jxgr-4qqg, CGA-6xf9-gvvw-hx37, CGA-7r48-xwv6-rmwv, CGA-7x25-mp36-4r4r, CGA-823m-wfjh-8rg6, CGA-8544-2397-cr5g, CGA-859f-g27c-r9g2, CGA-88hr-hq5q-25c5, CGA-8977-m37r-vcwr, CGA-8pjx-rmvm-v9c2, CGA-8q5m-r29m-h4rx, CGA-8r88-cm72-v6gx, CGA-946q-hqrr-wmhf, CGA-995f-vr2p-v7pm, CGA-9c44-c523-5wcx, CGA-9fmx-r8c4-jjgv, CGA-9xxq-4rp6-3rjq, CGA-c253-3q5g-68jx, CGA-cffr-h33h-jr46, CGA-cj8v-wq6g-vcqm, CGA-f5gf-37gr-h98x, CGA-f7m9-2m3h-j6jp, CGA-f996-rw4q-pj9x, CGA-fqw7-fgpv-48cq, CGA-gf67-6fpg-m2x5, CGA-gjmh-gxxm-8cpm, CGA-gpmc-v7j4-96cq, CGA-gq4g-m426-pm7r, CGA-gr2p-6h7j-pp4c, CGA-grcr-4r5j-jfr9, CGA-h3wq-r6wr-643v, CGA-h48j-w22c-9j79, CGA-h9x8-9hcw-mp2g, CGA-hc4j-9vpc-cv6j, CGA-hpcw-x9hm-m62g, CGA-j3rf-h267-q2v6, CGA-j4jf-q96c-327v, CGA-j4ph-rfqq-3f8r, CGA-jg3q-rjqc-cjjr, CGA-jj3q-9vmx-m4jm, CGA-jvh2-wvxh-x6f5, CGA-m497-q4fx-923c, CGA-m563-g7c7-pw9r, CGA-m856-q3xr-ccv9, CGA-mjfq-q62m-jrqc, CGA-mpxp-g93h-5r6h, CGA-mw8v-xf62-w6r9, CGA-p6qj-w6cw-vwqg, CGA-pcj6-p833-4pqx, CGA-v7c6-g64v-pjxw, CGA-x69f-56p8-fjqf, CGA-x89h-r33c-5hxx, CGA-px9w-253c-8jx8, CGA-q42c-crf9-r6rx, CGA-q4j2-h54j-g29f, CGA-qgp7-5986-qfqc, CGA-qhp4-vjfw-r8pm, CGA-qpfw-944h-634m, CGA-qr77-pfvr-v7pf, CGA-qwr6-4mw3-8wp8, CGA-qx6g-hcgw-qvqj, CGA-r4m8-4xqc-pf3f, CGA-rw5c-4gh2-cgfg, CGA-vfph-vfgr-c6fv, CGA-vh8v-c6gx-w347, CGA-vp92-wfcq-rw4w, CGA-vrr4-45c2-vgqf, CGA-vvgj-29vj-g5g9, CGA-vxj7-4vq2-cqrf, CGA-w3fc-8x8c-594w, CGA-w8hm-3cxw-prqc, CGA-wh44-396c-hhpr, CGA-wvff-2m4r-6m4w, CGA-ww4p-prmh-27c9, CGA-x49q-2c8h-p287, CGA-x87f-9v95-rp24, CGA-368p-ggc4-7m6w, CGA-5cj7-8cxq-7m2q, CGA-6pqc-73h5-x829, CGA-9rwv-p933-qq7h, CGA-pmhx-5r2m-cxfj, CGA-w9q8-q389-fjmq, CGA-6pch-3jff-j99p, CGA-jjw9-ccx2-89cp, CGA-p3cp-4838-hfhq, CGA-vx6q-9rhx-vphc, CGA-5ggv-q5h7-74gj, CGA-mm8w-286m-9vhp
- Record: https://cvemate.com/vulnerability/CVE-2026-43299 · JSON: https://cvemate.com/vulnerability/CVE-2026-43299/json

## Description

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

btrfs: do not ASSERT() when the fs flips RO inside btrfs_repair_io_failure()

[BUG]
There is a bug report that when btrfs hits ENOSPC error in a critical
path, btrfs flips RO (this part is expected, although the ENOSPC bug
still needs to be addressed).

The problem is after the RO flip, if there is a read repair pending, we
can hit the ASSERT() inside btrfs_repair_io_failure() like the following:

  BTRFS info (device vdc): relocating block group 30408704 flags metadata|raid1
  ------------[ cut here ]------------
  BTRFS: Transaction aborted (error -28)
  WARNING: fs/btrfs/extent-tree.c:3235 at __btrfs_free_extent.isra.0+0x453/0xfd0, CPU#1: btrfs/383844
  Modules linked in: kvm_intel kvm irqbypass
  [...]
  ---[ end trace 0000000000000000 ]---
  BTRFS info (device vdc state EA): 2 enospc errors during balance
  BTRFS info (device vdc state EA): balance: ended with status: -30
  BTRFS error (device vdc state EA): parent transid verify failed on logical 30556160 mirror 2 wanted 8 found 6
  BTRFS error (device vdc state EA): bdev /dev/nvme0n1 errs: wr 0, rd 0, flush 0, corrupt 10, gen 0
  [...]
  assertion failed: !(fs_info->sb->s_flags & SB_RDONLY) :: 0, in fs/btrfs/bio.c:938
  ------------[ cut here ]------------
  assertion failed: !(fs_info->sb->s_flags & SB_RDONLY) :: 0, in fs/btrfs/bio.c:938
  kernel BUG at fs/btrfs/bio.c:938!
  Oops: invalid opcode: 0000 [#1] SMP NOPTI
  CPU: 0 UID: 0 PID: 868 Comm: kworker/u8:13 Tainted: G        W        N  6.19.0-rc6+ #4788 PREEMPT(full)
  Tainted: [W]=WARN, [N]=TEST
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014
  Workqueue: btrfs-endio simple_end_io_work
  RIP: 0010:btrfs_repair_io_failure.cold+0xb2/0x120
  RSP: 0000:ffffc90001d2bcf0 EFLAGS: 00010246
  RAX: 0000000000000051 RBX: 0000000000001000 RCX: 0000000000000000
  RDX: 0000000000000000 RSI: ffffffff8305cf42 RDI: 00000000ffffffff
  RBP: 0000000000000002 R08: 00000000fffeffff R09: ffffffff837fa988
  R10: ffffffff8327a9e0 R11: 6f69747265737361 R12: ffff88813018d310
  R13: ffff888168b8a000 R14: ffffc90001d2bd90 R15: ffff88810a169000
  FS:  0000000000000000(0000) GS:ffff8885e752c000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  ------------[ cut here ]------------

[CAUSE]
The cause of -ENOSPC error during the test case btrfs/124 is still
unknown, although it's known that we still have cases where metadata can
be over-committed but can not be fulfilled correctly, thus if we hit
such ENOSPC error inside a critical path, we have no choice but abort
the current transaction.

This will mark the fs read-only.

The problem is inside the btrfs_repair_io_failure() path that we require
the fs not to be mount read-only. This is normally fine, but if we are
doing a read-repair meanwhile the fs flips RO due to a critical error,
we can enter btrfs_repair_io_failure() with super block set to
read-only, thus triggering the above crash.

[FIX]
Just replace the ASSERT() with a proper return if the fs is already
read-only.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.136%, percentile 3.204%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 213)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): \< 6.18.57-r0 \| All versions (No fix recorded)
- chainguard linux-aws-6.18-boot-installed (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-headers (Chainguard): All versions (No fix recorded) \| \< 6.18.57-r0
- chainguard linux-aws-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-nestkvm-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/f6df18c001e3dcebc08482d0adeacd0cfea08593>
- <https://git.kernel.org/stable/c/8ceaad6cd6e7fa5f73b0b2796a2e85d75d37e9f3>
- <https://ubuntu.com/security/CVE-2026-43299>
- <https://www.cve.org/CVERecord?id=CVE-2026-43299>
- <https://git.kernel.org/linus/8ceaad6cd6e7fa5f73b0b2796a2e85d75d37e9f3>
- <https://security-tracker.debian.org/tracker/CVE-2026-43299>
- <https://git.kernel.org/stable/c/81e1ae665004b99a10686473d99f0a7cb6335f38>
- <https://git.kernel.org/stable/c/a35b38cb4b0dd08d7cc0bd4e400208c7aeba8a72>
- <https://git.kernel.org/stable/c/da3f596073de1c3cbc99941f01296968a85c8c76>
- <https://git.kernel.org/stable/c/053dd7f3c9647d3a781919c1b14105f46786d677>
- <https://ubuntu.com/security/notices/USN-9173-1>
- <https://ubuntu.com/security/notices/USN-9175-1>
- <https://ubuntu.com/security/notices/USN-9174-1>
- <https://ubuntu.com/security/notices/USN-9183-1>
- <https://ubuntu.com/security/notices/USN-9173-2>
- <https://ubuntu.com/security/notices/USN-9192-1>
- <https://ubuntu.com/security/notices/USN-9173-3>
- <https://ubuntu.com/security/notices/USN-9174-2>
- <https://ubuntu.com/security/notices/USN-9191-1>

---

Data as of 2026-12-06T04:32:48.859Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
