CVE-2026-92501
ext4: drain in-flight DIO before buffered write fallback
Check your servers for CVE-2026-92501
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-92501 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ext4: drain in-flight DIO before buffered write fallback
generic/746 started failing intermittently on ext3 (no-extent inodes). The test triggers 'Page cache invalidation failure on direct I/O' warnings and subsequent fsync returns -EIO. Adding a 50ms delay between ext4_buffered_write_iter() and filemap_write_and_wait_range() in ext4_dio_write_iter() makes the race almost always reproducible.
On no-extent inodes, DIO writes to holes cannot use unwritten extents, so ext4_iomap_alloc() leaves m_flags=0 and ext4_map_blocks() returns 0. The iomap layer then returns -ENOTBLK, causing fallback to buffered I/O.
The fallback path in ext4_dio_write_iter() calls ext4_buffered_write_iter() which dirties pages, then does flush and invalidate. However, there's an unprotected window between ext4_buffered_write_iter() returning (with inode lock released) and the subsequent flush+invalidate.
Concurrent async DIO completions from other threads can run kiocb_invalidate_post_direct_write() during this window. If pages have been re-dirtied, post-invalidation finds dirty pages and triggers the warning, setting -EIO in the error sequence.
Consider a file with two 4k extents: [hole][written]. Thread A does DIO to the written extent, while thread B does DIO spanning both:
kworker A (4k DIO, allocated block) kworker B (8k DIO, fallback) ----------------------------------- ---------------------------- inode_lock_shared() inode_lock_shared() iomap_dio_rw(): iomap_dio_rw(): kiocb_invalidate_pages -> clean iomap_begin -> -ENOTBLK submit_bio (async) dio->size = 0 inode_unlock_shared() inode_unlock_shared()
[bio pending in block layer] /* fallback: lock released */ ext4_buffered_write_iter() inode_lock(exclusive) generic_perform_write() -> dirty pages [0, 8k] inode_unlock(exclusive)
/* pages dirty, no lock */ [bio completes] filemap_write_and_wait_range() iomap_dio_complete() -> flush dirty pages kiocb_invalidate_post_direct_write() invalidate_mapping_pages() invalidate_inode_pages2_range() -> finds dirty page! -> dio_warn_stale_pagecache() -> errseq_set(-EIO)
This issue can be triggered through normal I/O paths, not just intentionally overlapping DIO writes from userspace. For example, generic/746 uses a loop device where multiple kworkers issue concurrent I/O to the backing file. Additionally, when block_size < folio_size, non-overlapping DIO writes that share a large folio can also trigger the race.
Add inode_dio_wait() in ext4_buffered_write_iter() before ext4_write_checks() to drain all in-flight DIO. This ensures that all DIO clears existing pages before submitting IO (via kiocb_invalidate_pages()), all BIO waits for all DIO to complete (via inode_dio_wait()), and ext4_write_checks() observes the inode size after all completed DIO so that ext4_block_zero_eof() does not race with in-flight DIO, thus eliminating the race.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.35% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before fd7e0dab20837b9ea1eeef7c26f78ace8ac8258c affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before f0af3ae09fb72382da1a5371bf6761b0264668e4 affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before 7341e234927ff215f1d5d0bcfe04b74f53af378d affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before 74eee4ff9698a65b2e6e15dac0e50d6526ad5f20 affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before d47cdadd6e49023f7ee248048463807f1214f1ee affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before 4e4e3eec506247c8f8bd8aaa1eb25e67016681a5 affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before 9fd3ffc3c51c9deaba99bd7b338fff2d08f52416 affected from 378f32bab3714f04c4e0c3aee4129f6703805550, before 15cdefd0c0522f9d5e12d947fa04f4c11649b699
Other versions: unaffected
|
| Linux |
affected 5.5 unaffected before 5.5 unaffected from 5.10.270 up to and including 5.10.* unaffected from 5.15.221 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.110 up to and including 6.12.* unaffected from 6.18.52 up to and including 6.18.* unaffected from 7.2.6 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-92501 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-92501
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-92501
trivy image --scanners vuln IMAGE | grep CVE-2026-92501
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fd7e0dab20837b9ea1eeef7c26f78ace8ac8258c git.kernel.org
- https://git.kernel.org/stable/c/f0af3ae09fb72382da1a5371bf6761b0264668e4 git.kernel.org
- https://git.kernel.org/stable/c/7341e234927ff215f1d5d0bcfe04b74f53af378d git.kernel.org
- https://git.kernel.org/stable/c/74eee4ff9698a65b2e6e15dac0e50d6526ad5f20 git.kernel.org
- https://git.kernel.org/stable/c/d47cdadd6e49023f7ee248048463807f1214f1ee git.kernel.org
- https://git.kernel.org/stable/c/4e4e3eec506247c8f8bd8aaa1eb25e67016681a5 git.kernel.org
- https://git.kernel.org/stable/c/9fd3ffc3c51c9deaba99bd7b338fff2d08f52416 git.kernel.org
- https://git.kernel.org/stable/c/15cdefd0c0522f9d5e12d947fa04f4c11649b699 git.kernel.org
Source: the record CVE-2026-92501 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse