# CVE-2026-43338: btrfs: reserve enough transaction items for qgroup ioctls

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-05-08T13:31:23.623Z
- **Modified:** 2026-11-11T20:10:00.273Z

## Who should check

- Anyone running Linux \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 4ccd563214419cef14a54df9333ed655484e9dc8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 320942ce316a17b104b5814db55e42a42c2442cf; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< bb6eb33c908edbbb4d92abdc0c6c87f21b4952e8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< cf930a651eef6f8d915bf0ccd60c2045974f870c; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 386f5e16a383101a68e195c806b4eedb233cd1d3; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< f9a4e3015db1aeafbef407650eb8555445ca943e
- Anyone running Linux 3.6

## Description

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

btrfs: reserve enough transaction items for qgroup ioctls

Currently our qgroup ioctls don't reserve any space, they just do a
transaction join, which does not reserve any space, neither for the quota
tree updates nor for the delayed refs generated when updating the quota
tree. The quota root uses the global block reserve, which is fine most of
the time since we don't expect a lot of updates to the quota root, or to
be too close to -ENOSPC such that other critical metadata updates need to
resort to the global reserve.

However this is not optimal, as not reserving proper space may result in a
transaction abort due to not reserving space for delayed refs and then
abusing the use of the global block reserve.

For example, the following reproducer (which is unlikely to model any
real world use case, but just to illustrate the problem), triggers such a
transaction abort due to -ENOSPC when running delayed refs:

  $ cat test.sh
  \#!/bin/bash

  DEV=/dev/nullb0
  MNT=/mnt/nullb0

  umount $DEV &\> /dev/null
  \# Limit device to 1G so that it's much faster to reproduce the issue.
  mkfs.btrfs -f -b 1G $DEV
  mount -o commit=600 $DEV $MNT

  fallocate -l 800M $MNT/filler
  btrfs quota enable $MNT

  for ((i = 1; i \<= 400000; i++)); do
      btrfs qgroup create 1/$i $MNT
  done

  umount $MNT

When running this, we can see in dmesg/syslog that a transaction abort
happened:

  \[436.490\] BTRFS error (device nullb0): failed to run delayed ref for logical 30408704 num\_bytes 16384 type 176 action 1 ref\_mod 1: -28
  \[436.493\] ------------\[ cut here \]------------
  \[436.494\] BTRFS: Transaction aborted (error -28)
  \[436.495\] WARNING: fs/btrfs/extent-tree.c:2247 at btrfs\_run\_delayed\_refs+0xd9/0x110 \[btrfs\], CPU\#4: umount/2495372
  \[436.497\] Modules linked in: btrfs loop (...)
  \[436.508\] CPU: 4 UID: 0 PID: 2495372 Comm: umount Tainted: G        W           6.19.0-rc8-btrfs-next-225+ \#1 PREEMPT(full)
  \[436.510\] Tainted: \[W\]=WARN
  \[436.511\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org 04/01/2014
  \[436.513\] RIP: 0010:btrfs\_run\_delayed\_refs+0xdf/0x110 \[btrfs\]
  \[436.514\] Code: 0f 82 ea (...)
  \[436.518\] RSP: 0018:ffffd511850b7d78 EFLAGS: 00010292
  \[436.519\] RAX: 00000000ffffffe4 RBX: ffff8f120dad37e0 RCX: 0000000002040001
  \[436.520\] RDX: 0000000000000002 RSI: 00000000ffffffe4 RDI: ffffffffc090fd80
  \[436.522\] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffffc04d1867
  \[436.523\] R10: ffff8f18dc1fffa8 R11: 0000000000000003 R12: ffff8f173aa89400
  \[436.524\] R13: 0000000000000000 R14: ffff8f173aa89400 R15: 0000000000000000
  \[436.526\] FS:  00007fe59045d840(0000) GS:ffff8f192e22e000(0000) knlGS:0000000000000000
  \[436.527\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  \[436.528\] CR2: 00007fe5905ff2b0 CR3: 000000060710a002 CR4: 0000000000370ef0
  \[436.530\] Call Trace:
  \[436.530\]  \<TASK\>
  \[436.530\]  btrfs\_commit\_transaction+0x73/0xc00 \[btrfs\]
  \[436.531\]  ? btrfs\_attach\_transaction\_barrier+0x1e/0x70 \[btrfs\]
  \[436.532\]  sync\_filesystem+0x7a/0x90
  \[436.533\]  generic\_shutdown\_super+0x28/0x180
  \[436.533\]  kill\_anon\_super+0x12/0x40
  \[436.534\]  btrfs\_kill\_super+0x12/0x20 \[btrfs\]
  \[436.534\]  deactivate\_locked\_super+0x2f/0xb0
  \[436.534\]  cleanup\_mnt+0xea/0x180
  \[436.535\]  task\_work\_run+0x58/0xa0
  \[436.535\]  exit\_to\_user\_mode\_loop+0xed/0x480
  \[436.536\]  ? \_\_x64\_sys\_umount+0x68/0x80
  \[436.536\]  do\_syscall\_64+0x2a5/0xf20
  \[436.537\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
  \[436.537\] RIP: 0033:0x7fe5906b6217
  \[436.538\] Code: 0d 00 f7 (...)
  \[436.540\] RSP: 002b:00007ffcd87a61f8 EFLAGS: 00000246 ORIG\_RAX: 00000000000000a6
  \[436.541\] RAX: 0000000000000000 RBX: 00005618b9ecadc8 RCX: 00007fe5906b6217
  \[436.541\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00005618b9ecb100
  \[436.542\] RBP: 0000000000000000 R08: 00007ffcd87a4fe0 R09: 00000000ffffffff
  \[436.544\] R10: 0000000000000103 R11: 
---truncated---

## Affected and fixed versions

- Linux: \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 4ccd563214419cef14a54df9333ed655484e9dc8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 320942ce316a17b104b5814db55e42a42c2442cf; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< bb6eb33c908edbbb4d92abdc0c6c87f21b4952e8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< cf930a651eef6f8d915bf0ccd60c2045974f870c; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 386f5e16a383101a68e195c806b4eedb233cd1d3; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< f9a4e3015db1aeafbef407650eb8555445ca943e (cvelist)
- Linux: 3.6 (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-2026-43338. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43338.md
Affected: Linux >= 5d13a37bd5327220e13329943d1228acfbe5934a, < 4ccd563214419cef14a54df9333ed655484e9dc8; >= 5d13a37bd5327220e13329943d1228acfbe5934a, < 320942ce316a17b104b5814db55e42a42c2442cf; >= 5d13a37bd5327220e13329943d1228acfbe5934a, < bb6eb33c908edbbb4d92abdc0c6c87f21b4952e8; >= 5d13a37bd5327220e133299…
Fixed in: Linux 4ccd563214419cef14a54df9333ed655484e9dc8, Linux 320942ce316a17b104b5814db55e42a42c2442cf, Linux 386f5e16a383101a68e195c806b4eedb233cd1d3

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 4ccd563214419cef14a54df9333ed655484e9dc8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 320942ce316a17b104b5814db55e42a42c2442cf; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< bb6eb33c908edbbb4d92abdc0c6c87f21b4952e8; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< cf930a651eef6f8d915bf0ccd60c2045974f870c; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< 386f5e16a383101a68e195c806b4eedb233cd1d3; \>= 5d13a37bd5327220e13329943d1228acfbe5934a, \< f9a4e3015db1aeafbef407650eb8555445ca943e; Linux 3.6.

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

Yes. Fixed in Linux 4ccd563214419cef14a54df9333ed655484e9dc8, Linux 320942ce316a17b104b5814db55e42a42c2442cf, Linux 386f5e16a383101a68e195c806b4eedb233cd1d3. No fix listed yet: follow the vendor advisory.

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

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/bb6eb33c908edbbb4d92abdc0c6c87f21b4952e8>
- patch: <https://git.kernel.org/stable/c/cf930a651eef6f8d915bf0ccd60c2045974f870c>
- patch: <https://git.kernel.org/stable/c/386f5e16a383101a68e195c806b4eedb233cd1d3>
- patch: <https://git.kernel.org/stable/c/f9a4e3015db1aeafbef407650eb8555445ca943e>
- other: <https://git.kernel.org/stable/c/4ccd563214419cef14a54df9333ed655484e9dc8>
- other: <https://git.kernel.org/stable/c/320942ce316a17b104b5814db55e42a42c2442cf>

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

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