# CVE-2026-45934: btrfs: fix EEXIST abort due to non-consecutive gaps in chunk allocation

> 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-27T12:17:51.905Z
- **Modified:** 2026-10-30T13:18:53.400Z

## Who should check

- Anyone running Linux \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 8f01e82c58f40739dfec32fc83dfd66711d473b9; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 12addb8ab5eec94098d4c7c6614830ccbe7ad130; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 09207c3975e1f8f76a52472004dfcab997b4cbd6; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 7d4eadee7042d27fcea659fcdd738f463a7d2e70; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 156cac365e27a82b64ae510c5f463fd81f0265b1; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< b14c5e04bd0f722ed631845599d52d03fcae1bc1
- Anyone running Linux 4.1

## Description

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

btrfs: fix EEXIST abort due to non-consecutive gaps in chunk allocation

I have been observing a number of systems aborting at
insert\_dev\_extents() in btrfs\_create\_pending\_block\_groups(). The
following is a sample stack trace of such an abort coming from forced
chunk allocation (typically behind CONFIG\_BTRFS\_EXPERIMENTAL) but this
can theoretically happen to any DUP chunk allocation.

  \[81.801\] ------------\[ cut here \]------------
  \[81.801\] BTRFS: Transaction aborted (error -17)
  \[81.801\] WARNING: fs/btrfs/block-group.c:2876 at btrfs\_create\_pending\_block\_groups+0x721/0x770 \[btrfs\], CPU\#1: bash/319
  \[81.802\] Modules linked in: virtio\_net btrfs xor zstd\_compress raid6\_pq null\_blk
  \[81.803\] CPU: 1 UID: 0 PID: 319 Comm: bash Kdump: loaded Not tainted 6.19.0-rc6+ \#319 NONE
  \[81.803\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014
  \[81.804\] RIP: 0010:btrfs\_create\_pending\_block\_groups+0x723/0x770 \[btrfs\]
  \[81.806\] RSP: 0018:ffffa36241a6bce8 EFLAGS: 00010282
  \[81.806\] RAX: 000000000000000d RBX: ffff8e699921e400 RCX: 0000000000000000
  \[81.807\] RDX: 0000000002040001 RSI: 00000000ffffffef RDI: ffffffffc0608bf0
  \[81.807\] RBP: 00000000ffffffef R08: ffff8e69830f6000 R09: 0000000000000007
  \[81.808\] R10: ffff8e699921e5e8 R11: 0000000000000000 R12: ffff8e6999228000
  \[81.808\] R13: ffff8e6984d82000 R14: ffff8e69966a69c0 R15: ffff8e69aa47b000
  \[81.809\] FS:  00007fec6bdd9740(0000) GS:ffff8e6b1b379000(0000) knlGS:0000000000000000
  \[81.809\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  \[81.810\] CR2: 00005604833670f0 CR3: 0000000116679000 CR4: 00000000000006f0
  \[81.810\] Call Trace:
  \[81.810\]  \<TASK\>
  \[81.810\]  \_\_btrfs\_end\_transaction+0x3e/0x2b0 \[btrfs\]
  \[81.811\]  btrfs\_force\_chunk\_alloc\_store+0xcd/0x140 \[btrfs\]
  \[81.811\]  kernfs\_fop\_write\_iter+0x15f/0x240
  \[81.812\]  vfs\_write+0x264/0x500
  \[81.812\]  ksys\_write+0x6c/0xe0
  \[81.812\]  do\_syscall\_64+0x66/0x770
  \[81.812\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
  \[81.813\] RIP: 0033:0x7fec6be66197
  \[81.814\] RSP: 002b:00007fffb159dd30 EFLAGS: 00000202 ORIG\_RAX: 0000000000000001
  \[81.815\] RAX: ffffffffffffffda RBX: 00007fec6bdd9740 RCX: 00007fec6be66197
  \[81.815\] RDX: 0000000000000002 RSI: 0000560483374f80 RDI: 0000000000000001
  \[81.816\] RBP: 0000560483374f80 R08: 0000000000000000 R09: 0000000000000000
  \[81.816\] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002
  \[81.817\] R13: 00007fec6bfb85c0 R14: 00007fec6bfb5ee0 R15: 00005604833729c0
  \[81.817\]  \</TASK\>
  \[81.817\] irq event stamp: 20039
  \[81.818\] hardirqs last  enabled at (20047): \[\<ffffffff99a68302\>\] \_\_up\_console\_sem+0x52/0x60
  \[81.818\] hardirqs last disabled at (20056): \[\<ffffffff99a682e7\>\] \_\_up\_console\_sem+0x37/0x60
  \[81.819\] softirqs last  enabled at (19470): \[\<ffffffff999d2b46\>\] \_\_irq\_exit\_rcu+0x96/0xc0
  \[81.819\] softirqs last disabled at (19463): \[\<ffffffff999d2b46\>\] \_\_irq\_exit\_rcu+0x96/0xc0
  \[81.820\] ---\[ end trace 0000000000000000 \]---
  \[81.820\] BTRFS: error (device dm-7 state A) in btrfs\_create\_pending\_block\_groups:2876: errno=-17 Object already exists

Inspecting these aborts with drgn, I observed a pattern of overlapping
chunk\_maps. Note how stripe 1 of the first chunk overlaps in physical
address with stripe 0 of the second chunk.

Physical Start     Physical End       Length       Logical            Type                 Stripe
----------------------------------------------------------------------------------------------------
0x0000000102500000 0x0000000142500000 1.0G         0x0000000641d00000 META\|DUP             0/2
0x0000000142500000 0x0000000182500000 1.0G         0x0000000641d00000 META\|DUP             1/2
0x0000000142500000 0x0000000182500000 1.0G         0x0000000601d00000 META\|DUP             0/2
0x0000000182500000 0x00000001c2500000 1.0G         0x0000000601d00000 META\|DUP             1/2

Now how could this possibly happen? All chunk allocation is
---truncated---

## Affected and fixed versions

- Linux: \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 8f01e82c58f40739dfec32fc83dfd66711d473b9; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 12addb8ab5eec94098d4c7c6614830ccbe7ad130; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 09207c3975e1f8f76a52472004dfcab997b4cbd6; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 7d4eadee7042d27fcea659fcdd738f463a7d2e70; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 156cac365e27a82b64ae510c5f463fd81f0265b1; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< b14c5e04bd0f722ed631845599d52d03fcae1bc1 (cvelist)
- Linux: 4.1 (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-45934. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45934.md
Affected: Linux >= 1b9845081633072c18f30d8cfd09c267adf0b109, < 8f01e82c58f40739dfec32fc83dfd66711d473b9; >= 1b9845081633072c18f30d8cfd09c267adf0b109, < 12addb8ab5eec94098d4c7c6614830ccbe7ad130; >= 1b9845081633072c18f30d8cfd09c267adf0b109, < 09207c3975e1f8f76a52472004dfcab997b4cbd6; >= 1b9845081633072c18f30d8…
Fixed in: Linux 8f01e82c58f40739dfec32fc83dfd66711d473b9, Linux 12addb8ab5eec94098d4c7c6614830ccbe7ad130, Linux 09207c3975e1f8f76a52472004dfcab997b4cbd6, Linux 7d4eadee7042d27fcea659fcdd738f463a7d2e70, Linux 156cac365e27a82b64ae510c5f463fd81f0265b1

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

There is no confirmed exploitation: CVE-2026-45934 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-45934?

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

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

Linux \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 8f01e82c58f40739dfec32fc83dfd66711d473b9; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 12addb8ab5eec94098d4c7c6614830ccbe7ad130; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 09207c3975e1f8f76a52472004dfcab997b4cbd6; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 7d4eadee7042d27fcea659fcdd738f463a7d2e70; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< 156cac365e27a82b64ae510c5f463fd81f0265b1; \>= 1b9845081633072c18f30d8cfd09c267adf0b109, \< b14c5e04bd0f722ed631845599d52d03fcae1bc1; Linux 4.1.

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

Yes. Fixed in Linux 8f01e82c58f40739dfec32fc83dfd66711d473b9, Linux 12addb8ab5eec94098d4c7c6614830ccbe7ad130, Linux 09207c3975e1f8f76a52472004dfcab997b4cbd6, Linux 7d4eadee7042d27fcea659fcdd738f463a7d2e70, Linux 156cac365e27a82b64ae510c5f463fd81f0265b1. No fix listed yet: follow the vendor advisory.

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

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/7d4eadee7042d27fcea659fcdd738f463a7d2e70>
- patch: <https://git.kernel.org/stable/c/156cac365e27a82b64ae510c5f463fd81f0265b1>
- patch: <https://git.kernel.org/stable/c/b14c5e04bd0f722ed631845599d52d03fcae1bc1>
- other: <https://git.kernel.org/stable/c/8f01e82c58f40739dfec32fc83dfd66711d473b9>
- other: <https://git.kernel.org/stable/c/12addb8ab5eec94098d4c7c6614830ccbe7ad130>
- other: <https://git.kernel.org/stable/c/09207c3975e1f8f76a52472004dfcab997b4cbd6>

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

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