CVE-2026-139633: ext2: drain in-flight DIO before buffered write fallback

Published Nov 30, 2026
·
Updated

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

ext2: drain in-flight DIO before buffered write fallback

An asynchronous direct write can remain in flight after the inode lock is released. If another direct write falls back to buffered I/O while the first write is still pending, genericperformwrite() can dirty pages before the first write completes its post-I/O page cache invalidation. The invalidation then finds dirty pages, reports a page cache invalidation failure, and records -EIO in the mapping error sequence. A later fsync() therefore returns -EIO.

Commit 15cdefd0c0522f9d5e12d947fa04f4c11649b699 ("ext4: drain in-flight DIO before buffered write fallback") fixed the same race in ext4. Ext2 has an equivalent fallback after iomapdiorw() returns -ENOTBLK or a short write, but does not drain other in-flight DIO before dirtying the page cache.

Wait for in-flight DIO before calling genericperformwrite() in the fallback path.

A reproducer using concurrent AIO direct writes and buffered fallback triggered the following warning and made a subsequent fsync() return -EIO:

Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O!

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.5.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux<7.3.6-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  6. Compensating control

    In ext2's buffered-write fallback path, wait for in-flight direct I/O to complete before calling generic_perform_write().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description
Data Sourced
via OSV·01:36 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

What workload is required to trigger this issue?

The race requires concurrent asynchronous direct I/O writes on an ext2 inode, where a direct write falls back to buffered I/O after iomap_dio_rw() returns -ENOTBLK or performs a short write while another direct write is still in flight.

2

What is the observable impact if the race occurs?

The direct-I/O completion can fail to invalidate dirty page-cache pages, producing a page-cache invalidation failure and recording -EIO in the mapping error sequence. A later fsync() can then return -EIO, and the warning indicates possible data corruption from the collision.

3

How can administrators identify potentially affected systems or events?

Look for the kernel warning "Page cache invalidation failure on direct I/O" and for later fsync() calls returning -EIO in workloads using ext2 with concurrent asynchronous direct writes. The described reproducer combines concurrent AIO direct writes with buffered-I/O fallback.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203