CVE-2026-45985 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: don't set EXT4_GET_BLOCKS_CONVERT when splitting before submitting I/O When allocating blocks during within-EOF DIO and writeback with dioread_nolock enabled, EXT4_GET_BLOCKS_PRE_IO was set to split an existing large unwritten extent. However, EXT4_GET_BLOCKS_CONVERT was set when calling ext4_split_convert_extents(), which may potentially result in stale data issues. Assume we have an unwritten extent, and then DIO writes the second half. [UUUUUUUUUUUUUUUU] on-disk extent U: unwritten extent [UUUUUUUUUUUUUUUU] extent status tree |<- ->| ----> dio write this range First, ext4_iomap_alloc() call ext4_map_blocks() with EXT4_GET_BLOCKS_PRE_IO, EXT4_GET_BLOCKS_UNWRIT_EXT and EXT4_GET_BLOCKS_CREATE flags set. ext4_map_blocks() find this extent and call ext4_split_convert_extents() with EXT4_GET_BLOCKS_CONVERT and the above flags set. Then, ext4_split_convert_extents() calls ext4_split_extent() with EXT4_EXT_MAY_ZEROOUT, EXT4_EXT_MARK_UNWRIT2 and EXT4_EXT_DATA_VALID2 flags set, and it calls ext4_split_extent_at() to split the second half with EXT4_EXT_DATA_VALID2, EXT4_EXT_MARK_UNWRIT1, EXT4_EXT_MAY_ZEROOUT and EXT4_EXT_MARK_UNWRIT2 flags set. However, ext4_split_extent_at() failed to insert extent since a temporary lack -ENOSPC. It zeroes out the first half but convert the entire on-disk extent to written since the EXT4_EXT_DATA_VALID2 flag set, but left the second half as unwritten in the extent status tree. [0000000000SSSSSS] data S: stale data, 0: zeroed [WWWWWWWWWWWWWWWW] on-disk extent W: written extent [WWWWWWWWWWUUUUUU] extent status tree Finally, if the DIO failed to write data to the disk, the stale data in the second half will be exposed once the cached extent entry is gone. Fix this issue by not passing EXT4_GET_BLOCKS_CONVERT when splitting an unwritten extent before submitting I/O, and make ext4_split_convert_extents() to zero out the entire extent range to zero for this case, and also mark the extent in the extent status tree for consistency.
A vulnerability in the Linux kernel's ext4 file system has been addressed, concerning the management of unwritten extents during direct I/O operations. When writing data, the kernel improperly handled the conversion of extent states, which could result in stale data being exposed. This issue arose because the kernel set the EXT4_GET_BLOCKS_CONVERT flag when it should not have, leading to inconsistencies in how data was written and tracked. The problem was particularly evident when the second half of an unwritten extent was written, leaving the first half marked as written but the second half as unwritten, creating a discrepancy that could expose stale data once the extent cache was cleared.
The vulnerability has been fixed by ensuring that the EXT4_GET_BLOCKS_CONVERT flag is not set when splitting unwritten extents before submitting I/O. The ext4_split_convert_extents function has also been modified to zero out the entire extent range in such cases and to update the extent status tree for consistency.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2698731d25823267c29190cb578da9296a0c0d7b | kernel.org | Patch |
| https://git.kernel.org/stable/c/2920ec61c98b9476781359f05b94da84e80f54d4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/37555690f39f78ef69af347d9aff897e07445949 | kernel.org | Patch |
| https://git.kernel.org/stable/c/67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c | kernel.org | Patch |
| https://git.kernel.org/stable/c/716e7439a5a9b18c3ff882c2f8c834b9ced1aaec | kernel.org | Patch |
| https://git.kernel.org/stable/c/77e407967cd872cd75d7e4a691908e49c8e6b4d4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/feaf2a80e78f89ee8a3464126077ba8683b62791 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.15, < 5.10.253 >= 5.11, < 5.15.203 >= 5.16, < 6.6.130 >= 6.7, < 6.12.77 >= 6.13, < 6.18.17 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 16, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | kernel.org |