CVE-2026-139438: block: use iomap_dirty_folio for block devices
block: use iomapdirtyfolio for block devices
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
For block devices, use iomap_dirty_folio instead of filemap_dirty_folio so the folio’s per-block dirty bits are set.
Event History
Frequently Asked Questions
Which systems are realistically exposed to data loss?
The issue is observable only when CONFIG_BUFFER_HEAD is disabled and the affected block device has a block size smaller than the folio size. Devices whose size is not page-aligned may already receive a sub-page block size; page-aligned devices may require a block-size change to reach the affected condition.
What access does an attacker or triggering workload need?
A triggering workload needs to write through a memory mapping and force writeback, such as by modifying an mmaped range followed by msync() and fsync(). Setting a page-aligned device's block size with BLKBSZSET requires CAP_SYS_ADMIN, but no ioctl or privilege is needed when the device already has a sub-page block size.
Are devices with one block per folio affected?
No. With a single block, there is no iomap folio state that can become inconsistent, and iomap_writeback_folio() marks the entire folio dirty itself.