# CVE-2026-142911: iomap: follow the alignment requirement for iomap\_dio\_hole\_iter()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:54.482Z
- **Modified:** 2026-12-03T04:18:30.997Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access can trigger a kernel crash in the Linux kernel's iomap direct I/O hole handling on btrfs with block sizes larger than the page size, via a misaligned zeroing range.

## Who should check

- Anyone running Linux \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 74ab376345a5221cbe5c6ada6cad20e46638bca1; \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 4025185cf953e3f52ab63cf5fec50c1485ee7bb7
- Anyone running Linux 6.19

## Description

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

iomap: follow the alignment requirement for iomap\_dio\_hole\_iter()

\[BUG\]
On the latest development branch, btrfs with 8K block size on 4K page
sized systems will fail all test cases that run fsstress.

One very short example would be:

 \# $fsstress -n 4 -d $mnt -s 1785675805 -v
 0/0: dwrite - no filename
 0/1: creat f0 x:0 0 0
 0/1: creat add id=0,parent=-1
 0/2: write dontcache f0\[259 1 0 0 0 0\] \[816411,3620\] 0
 0/3: dread - xfsctl(XFS\_IOC\_DIOINFO) f0\[259 1 0 0 32 820031\] return 25, fallback to stat()
 0/3: dread f0\[259 1 0 0 32 820031\] \[483328,81920\] 0

Which triggered the following ASSERT():

 assertion failed: IS\_ALIGNED(state-\>start, blocksize) && IS\_ALIGNED(state-\>end + 1, blocksize), in fs/btrfs/extent-io-tree.c:346 (unaligned extent state, blocksize=8192 start=487424 end=565247 state=0x0)
 ------------\[ cut here \]------------
 kernel BUG at fs/btrfs/extent-io-tree.c:346!
 Oops: invalid opcode: 0000 \[\#1\] SMP
 CPU: 4 UID: 0 PID: 648 Comm: fsstress Tainted: G            E       7.2.0-rc5-custom+ \#431 PREEMPT(full)  7c507bd40d65e4d871e698b22d80f1306bbec543
 Tainted: \[E\]=UNSIGNED\_MODULE
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
 RIP: 0010:validate\_extent\_state.part.0.isra.0.cold+0x24/0x26 \[btrfs\]
 Call Trace:
  \<TASK\>
  insert\_state+0x34/0x1a0 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  set\_extent\_bit+0x440/0x8d0 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  btrfs\_lock\_extent\_bits+0x58/0x380 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  btrfs\_dio\_iomap\_begin+0x319/0xb70 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  iomap\_iter+0x1a2/0x370
  \_\_iomap\_dio\_rw+0x236/0x8d0
  iomap\_dio\_rw+0x12/0x30
  btrfs\_direct\_read+0x15f/0x290 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  btrfs\_file\_read\_iter+0x42/0x90 \[btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8\]
  vfs\_read+0x25e/0x380
  ksys\_read+0x73/0xe0
  do\_syscall\_64+0xe1/0x790
  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
 RIP: 0033:0x7fc3f129318e
  \</TASK\>

\[CAUSE\]
iomap\_dio\_hole\_iter() is responsible for zeroing out the buffer for a
hole, which calls iov\_iter\_zero() to zero the range.

However btrfs disables page fault during its \_\_iomap\_dio\_rw() call, so
iov\_iter\_zero() can fail at any page boundary.

When the fs block size is larger than page size, iov\_iter\_zero() may
only have zeroed one page, which is not aligned to the fs block size.

Such one page long range is passed back to btrfs, which triggers the
above ASSERT().

\[FIX\]
For iomap\_dio\_hole\_iter() round down the copied length, and revert
any excessive range that is beyond the aligned copied length.
Also use @aligned\_copied for the size increment and iter advancement.

This should only affect btrfs, which is the only fs utilizing iomap dio
with page fault disabled.

## Affected and fixed versions

- Linux: \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 74ab376345a5221cbe5c6ada6cad20e46638bca1; \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 4025185cf953e3f52ab63cf5fec50c1485ee7bb7 (cvelist)
- Linux: 6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-142911.md
Affected: Linux >= 001397f5ef4908ea46a63059439e8c3bf3552d9f, < 74ab376345a5221cbe5c6ada6cad20e46638bca1; >= 001397f5ef4908ea46a63059439e8c3bf3552d9f, < 4025185cf953e3f52ab63cf5fec50c1485ee7bb7; Linux 6.19
Fixed in: Linux 74ab376345a5221cbe5c6ada6cad20e46638bca1, Linux 4025185cf953e3f52ab63cf5fec50c1485ee7bb7

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

There is no confirmed exploitation: CVE-2026-142911 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 74ab376345a5221cbe5c6ada6cad20e46638bca1; \>= 001397f5ef4908ea46a63059439e8c3bf3552d9f, \< 4025185cf953e3f52ab63cf5fec50c1485ee7bb7; Linux 6.19.

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

Yes. Fixed in Linux 74ab376345a5221cbe5c6ada6cad20e46638bca1, Linux 4025185cf953e3f52ab63cf5fec50c1485ee7bb7. Upgrade Linux to 4025185cf953e3f52ab63cf5fec50c1485ee7bb7 or later.

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

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/74ab376345a5221cbe5c6ada6cad20e46638bca1>
- other: <https://git.kernel.org/stable/c/4025185cf953e3f52ab63cf5fec50c1485ee7bb7>

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

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