# CVE-2026-98080: btrfs: do not force reloc root creation during qgroup\_account\_snapshot()

> 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.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-672
- **Published:** 2026-09-25T10:24:17.491Z
- **Modified:** 2026-10-19T10:18:03.930Z

## Who should check

- Anyone running Linux \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< d0284d974be46a0a06068f930c84039d540ae8ed; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 21bd77c132f18dc21c6fcdf417310d1adcf7448b; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7ce02d52548b672795511c2cac8da6ec79ac8877; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7caaae233a55e167063f4cfa3385b1a04c8bbecb; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< c4c78768d1a8ceb713693cc5524acbe984c31f3c; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 203cbfb4fba590bd9b08bd36fa6d05b5d28923bf; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< b5d5ab5a715001dd937c920ef8c5688fd4999ba1; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< cacf35832292997018837e484283f95a9301ebf5; 204bfcda824428b3a298eae8e87875bbd435a3c1; 1f586802bb18892d2a6eb7d31d7fed78946d21a1; …
- Anyone running Linux 4.17

## Description

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

btrfs: do not force reloc root creation during qgroup\_account\_snapshot()

\[BUG\]
When running btrfs/252 with quota enabled through MKFS\_OPTIONS="-O quota",
it has a high chance to trigger the following kernel warning and flips
the fs RO:

  BTRFS info (device dm-2): relocating block group 30408704 flags metadata\|dup
  ------------\[ cut here \]------------
  WARNING: fs/btrfs/extent-tree.c:879 at lookup\_inline\_extent\_backref+0x74b/0x960 \[btrfs\], CPU\#4: btrfs/2173
  CPU: 4 UID: 0 PID: 2173 Comm: btrfs Not tainted 7.2.0-rc6-custom+ \#457 PREEMPT(full)  3adc6528fb66f7a55fe1095385818e742f200aab
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
  RIP: 0010:lookup\_inline\_extent\_backref+0x74b/0x960 \[btrfs\]
  Call Trace:
   \<TASK\>
   insert\_inline\_extent\_backref+0x7c/0x160 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   \_\_btrfs\_inc\_extent\_ref+0xa9/0x270 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   \_\_btrfs\_run\_delayed\_refs+0x4af/0x11c0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_run\_delayed\_refs+0x9d/0xf0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   create\_pending\_snapshot+0x39d/0xf00 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   create\_pending\_snapshots+0x9b/0xc0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_commit\_transaction+0x280/0xeb0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   prepare\_to\_relocate+0x147/0x200 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   relocate\_block\_group+0x6b/0x5e0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_relocate\_block\_group+0x92c/0x2380 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_relocate\_chunk+0x3f/0x1a0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_balance+0xa2c/0x19c0 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   btrfs\_ioctl+0x2839/0x2d30 \[btrfs 32f09462c54d9c922fca74a3e4866f4aa7737b72\]
   \_\_x64\_sys\_ioctl+0x416/0x9a0
   do\_syscall\_64+0xe1/0x790
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---
  BTRFS info (device dm-2): leaf 4593991680 gen 233 total ptrs 175 free space 5953 owner 2
  BTRFS info (device dm-2): refs 3 lock\_owner 2173 current 2173
  	item 0 key (166772736 METADATA\_ITEM 1) itemoff 16250 itemsize 33
  		extent refs 1 gen 222 flags 2
  		ref\#0: tree block backref root 266
         \[ Skip the tree dump \]
  	item 174 key (263225344 METADATA\_ITEM 0) itemoff 10328 itemsize 33
  		extent refs 1 gen 162 flags 258
  		ref\#0: tree block backref root 267
  BTRFS error (device dm-2): extent item not found for insert, bytenr 179847168 num\_bytes 16384 parent 4594335744 root\_objectid 273 owner 0 offset 0
  BTRFS error (device dm-2): failed to run delayed ref for logical 179847168 num\_bytes 16384 type 182 action 1 ref\_mod 1: -117

\[CAUSE\]
The above error is showing that there is a tree reference to a metadata
extent that is no longer there.

With "ref\_verify" mount option (requires CONFIG\_BTRFS\_DEBUG), there is
some extra debug output:

  BTRFS error (device dm-2): dumping block entry \[180961280 16384\], num\_refs 0, metadata 1, from disk 0
  BTRFS error (device dm-2):   root entry 256, num\_refs 18446744073709551615
  BTRFS error (device dm-2):   root entry 273, num\_refs 18446744073709551615
  BTRFS error (device dm-2):   Ref action 3, root 273, ref\_root 273, parent 0, owner 0, offset 0, num\_refs 1
     btrfs\_force\_cow\_block+0x129/0x7d0 \[btrfs\]
     btrfs\_cow\_block+0x10a/0x250 \[btrfs\]
     btrfs\_search\_slot+0x5eb/0xf40 \[btrfs\]
     btrfs\_insert\_empty\_items+0x3a/0x70 \[btrfs\]
     insert\_with\_overflow+0x53/0x130 \[btrfs\]
     btrfs\_insert\_dir\_item+0x125/0x290 \[btrfs\]
     btrfs\_add\_link+0xaa/0x410 \[btrfs\]
     btrfs\_rename+0x5ea/0xcd0 \[btrfs\]
     btrfs\_rename2+0x28/0x60 \[btrfs\]
     vfs\_rename+0x5b2/0xe10
     filename\_renameat2+0x244/0x430
     \_\_x64\_sys\_rename+0x48/0x70
     do\_syscall\_64+0xe1/0x790
     entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
 
---truncated---

## Affected and fixed versions

- Linux: \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< d0284d974be46a0a06068f930c84039d540ae8ed; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 21bd77c132f18dc21c6fcdf417310d1adcf7448b; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7ce02d52548b672795511c2cac8da6ec79ac8877; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7caaae233a55e167063f4cfa3385b1a04c8bbecb; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< c4c78768d1a8ceb713693cc5524acbe984c31f3c; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 203cbfb4fba590bd9b08bd36fa6d05b5d28923bf; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< b5d5ab5a715001dd937c920ef8c5688fd4999ba1; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< cacf35832292997018837e484283f95a9301ebf5; 204bfcda824428b3a298eae8e87875bbd435a3c1; 1f586802bb18892d2a6eb7d31d7fed78946d21a1; … (cvelist)
- Linux: 4.17 (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-98080. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98080.md
Affected: Linux >= 4d31778aa2fa342f5f92ca4025b293a1729161d1, < d0284d974be46a0a06068f930c84039d540ae8ed; >= 4d31778aa2fa342f5f92ca4025b293a1729161d1, < 21bd77c132f18dc21c6fcdf417310d1adcf7448b; >= 4d31778aa2fa342f5f92ca4025b293a1729161d1, < 7ce02d52548b672795511c2cac8da6ec79ac8877; >= 4d31778aa2fa342f5f92ca4…
Fixed in: Linux 21bd77c132f18dc21c6fcdf417310d1adcf7448b, Linux 7ce02d52548b672795511c2cac8da6ec79ac8877, Linux 7caaae233a55e167063f4cfa3385b1a04c8bbecb, Linux 203cbfb4fba590bd9b08bd36fa6d05b5d28923bf

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

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

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

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

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

Linux \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< d0284d974be46a0a06068f930c84039d540ae8ed; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 21bd77c132f18dc21c6fcdf417310d1adcf7448b; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7ce02d52548b672795511c2cac8da6ec79ac8877; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 7caaae233a55e167063f4cfa3385b1a04c8bbecb; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< c4c78768d1a8ceb713693cc5524acbe984c31f3c; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< 203cbfb4fba590bd9b08bd36fa6d05b5d28923bf; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< b5d5ab5a715001dd937c920ef8c5688fd4999ba1; \>= 4d31778aa2fa342f5f92ca4025b293a1729161d1, \< cacf35832292997018837e484283f95a9301ebf5; 204bfcda824428b3a298eae8e87875bbd435a3c1; 1f586802bb18892d2a6eb7d31d7fed78946d21a1; …; Linux 4.17.

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

Yes. Fixed in Linux 21bd77c132f18dc21c6fcdf417310d1adcf7448b, Linux 7ce02d52548b672795511c2cac8da6ec79ac8877, Linux 7caaae233a55e167063f4cfa3385b1a04c8bbecb, Linux 203cbfb4fba590bd9b08bd36fa6d05b5d28923bf. No fix listed yet: follow the vendor advisory.

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

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/d0284d974be46a0a06068f930c84039d540ae8ed>
- patch: <https://git.kernel.org/stable/c/21bd77c132f18dc21c6fcdf417310d1adcf7448b>
- patch: <https://git.kernel.org/stable/c/7ce02d52548b672795511c2cac8da6ec79ac8877>
- patch: <https://git.kernel.org/stable/c/7caaae233a55e167063f4cfa3385b1a04c8bbecb>
- patch: <https://git.kernel.org/stable/c/c4c78768d1a8ceb713693cc5524acbe984c31f3c>
- patch: <https://git.kernel.org/stable/c/203cbfb4fba590bd9b08bd36fa6d05b5d28923bf>
- patch: <https://git.kernel.org/stable/c/b5d5ab5a715001dd937c920ef8c5688fd4999ba1>
- patch: <https://git.kernel.org/stable/c/cacf35832292997018837e484283f95a9301ebf5>

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

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