# CVE-2026-80734: btrfs: initialize inode mapping flags for cached inodes

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-26)
- **Published:** 2026-09-03T08:21:50.734Z
- **Modified:** 2026-10-21T13:19:59.257Z

## Who should check

- Anyone running Linux \>= 01b002151539a4c2b27bfff9af033329a9b659e7, \< e4d997a1ec1d0dbb72dde35a99fda1850fee6a53; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< e18b8236c57fcc67d793bfc866f4bb2581be9f72; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0d26249671171ab759cb4fdce673554a690fa655; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0ef349734a93227b45f65fc50a3311d1cc5f03e9; ae584726e6eddf6cfbe49b3f4a78b3197716b6f8; \>= 6.12.111, \< 6.12.114; \>= 6.14.6, \< 6.15
- Anyone running Linux 6.15

## Description

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

btrfs: initialize inode mapping flags for cached inodes

\[BUG\]
When running generic/795 with 8K block size, 4K page size, the test
always fails, triggering some ASSERT()s related to folio size:

  795 (241074): drop\_caches: 3
  assertion failed: IS\_ALIGNED(start, blocksize) && IS\_ALIGNED(end + 1, blocksize), in extent\_io.c:1404 (blocksize=8192 root=262 ino=258 start=16826368 end=16830463 mapping min order=0)
  ------------\[ cut here \]------------
  kernel BUG at extent\_io.c:1404!
  Oops: invalid opcode: 0000 \[\#1\] SMP
  CPU: 8 UID: 0 PID: 241105 Comm: fsstress Tainted: G           OE       7.2.0-rc5-custom+ \#442 PREEMPT(full)  f4bfb352566f3949f29c233ce6f735050a03b245
  Tainted: \[O\]=OOT\_MODULE, \[E\]=UNSIGNED\_MODULE
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
  RIP: 0010:assert\_folio\_range.cold+0x3d/0x3f \[btrfs\]
  Call Trace:
   \<TASK\>
   btrfs\_read\_folio+0x9e/0x170 \[btrfs 4cd1dd93b341b8ef766643f9512f4a86259567a3\]
   prepare\_one\_folio.constprop.0+0x104/0x2a0 \[btrfs 4cd1dd93b341b8ef766643f9512f4a86259567a3\]
   btrfs\_buffered\_write+0x285/0xa50 \[btrfs 4cd1dd93b341b8ef766643f9512f4a86259567a3\]
   btrfs\_do\_write\_iter+0x1aa/0x210 \[btrfs 4cd1dd93b341b8ef766643f9512f4a86259567a3\]
   iter\_file\_splice\_write+0x31a/0x540
   direct\_splice\_actor+0x53/0x170
   splice\_direct\_to\_actor+0xe9/0x240
   do\_splice\_direct+0x76/0xb0
   vfs\_copy\_file\_range+0x1fd/0x630
   \_\_x64\_sys\_copy\_file\_range+0xf9/0x220
   do\_syscall\_64+0xe1/0x790
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---

The ASSERT() itself is added by a later patch.
The crash is triggered with that new debug patch, and without this fix.

\[CAUSE\]
In the above case, the start 16826368 is properly 8K aligned, but the
end (16830463 + 1) is not 8K aligned.
Furthermore the mapping's minimal folio order is 0, not the expected 1
for 8K block size with 4K page size.

So this means some inodes do not have btrfs\_set\_inode\_mapping\_order()
called on it.

The missing btrfs\_set\_inode\_mapping\_order() call happens for cached
inodes, through the following events:

- btrfs\_create\_new\_inode() called for inode X
  Which properly sets minimal folio order for the VFS inode.

- btrfs\_update\_inode() called for inode X
  Which calls btrfs\_delayed\_update\_inode() to create a delayed\_node
  into root-\>delayed\_nodes xarray.

- Drop cache/memory pressure, evicting in-memory inode X
  Which evicted the inode X, but delayed\_node is still in
  root-\>delayed\_nodes for future reuse.

- btrfs\_iget() for inode X called again

  btrfs\_iget()
  \|- btrfs\_iget\_locked()
  \|  \|- iget5\_locked\_rcu()
  \|     Which creates a new vfs\_inode for btrfs, whose mapping still
  \|     has the minimal order as 0.
  \|
  \|- btrfs\_read\_locked\_inode()
     \|- btrfs\_fill\_inode()
     \|  \|- btrfs\_get\_delayed\_node()
     \|     Which found out the previous node, and use that delayed
     \|     node to initialize the new inode.
     \|
     \|- filled = true;
     \|- if (filled) goto cache\_index;
        Which skips the btrfs\_update\_inode\_mapping\_flags() and
	btrfs\_set\_inode\_mapping\_order() calls.
	So the inode still has minimal folio order set as 0, not
	the required 1.

Thus later page cache read will get a folio whose size is smaller than
block size, as the mapping has its minimal folio order set as 0 not 1,
then trigger the ASSERT().

\[FIX\]
Move the btrfs\_update\_inode\_mapping\_flags() and
btrfs\_set\_inode\_mapping\_order() calls under cache\_index label,
so that the mapping flags and minimal folio order is always set
no matter if we have a cached inode.

## Affected and fixed versions

- Linux: \>= 01b002151539a4c2b27bfff9af033329a9b659e7, \< e4d997a1ec1d0dbb72dde35a99fda1850fee6a53; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< e18b8236c57fcc67d793bfc866f4bb2581be9f72; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0d26249671171ab759cb4fdce673554a690fa655; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0ef349734a93227b45f65fc50a3311d1cc5f03e9; ae584726e6eddf6cfbe49b3f4a78b3197716b6f8; \>= 6.12.111, \< 6.12.114; \>= 6.14.6, \< 6.15 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-80734.md
Affected: Linux >= 01b002151539a4c2b27bfff9af033329a9b659e7, < e4d997a1ec1d0dbb72dde35a99fda1850fee6a53; >= ecde48a1a6b3256bd49db8780bf37556b157783c, < e18b8236c57fcc67d793bfc866f4bb2581be9f72; >= ecde48a1a6b3256bd49db8780bf37556b157783c, < 0d26249671171ab759cb4fdce673554a690fa655; >= ecde48a1a6b3256bd49db87…
Fixed in: Linux 0d26249671171ab759cb4fdce673554a690fa655, Linux 0ef349734a93227b45f65fc50a3311d1cc5f03e9, Linux 6.12.114, Linux 6.15

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

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

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

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

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

Linux \>= 01b002151539a4c2b27bfff9af033329a9b659e7, \< e4d997a1ec1d0dbb72dde35a99fda1850fee6a53; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< e18b8236c57fcc67d793bfc866f4bb2581be9f72; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0d26249671171ab759cb4fdce673554a690fa655; \>= ecde48a1a6b3256bd49db8780bf37556b157783c, \< 0ef349734a93227b45f65fc50a3311d1cc5f03e9; ae584726e6eddf6cfbe49b3f4a78b3197716b6f8; \>= 6.12.111, \< 6.12.114; \>= 6.14.6, \< 6.15; Linux 6.15.

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

Yes. Fixed in Linux 0d26249671171ab759cb4fdce673554a690fa655, Linux 0ef349734a93227b45f65fc50a3311d1cc5f03e9, Linux 6.12.114, Linux 6.15. Upgrade Linux to 6.15 or later.

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

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

- other: <https://git.kernel.org/stable/c/e4d997a1ec1d0dbb72dde35a99fda1850fee6a53>
- other: <https://git.kernel.org/stable/c/e18b8236c57fcc67d793bfc866f4bb2581be9f72>
- other: <https://git.kernel.org/stable/c/0d26249671171ab759cb4fdce673554a690fa655>
- other: <https://git.kernel.org/stable/c/0ef349734a93227b45f65fc50a3311d1cc5f03e9>

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

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