VDB

CVE-2026-45985

CVE-2026-45985 PUBLISHED

ext4: don't set EXT4_GET_BLOCKS_CONVERT when splitting before submitting I/O

Reported by linux · Published May 27, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.77-99.140.amzn2023
bpftool6.12Amazon Linux1:6.12.77-99.140.amzn2023
bpftool6.18Amazon Linux1:6.18.20-20.229.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.20-20.229.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.20-20.229.amzn2023
kernel6.18-libbpfAmazon Linux1:6.18.20-20.229.amzn2023
kernel6.12Amazon Linux1:6.12.77-99.140.amzn2023
LinuxLinuxfeaf2a80e78f89ee8a3464126077ba8683b62791, 77e407967cd872cd75d7e4a691908e49c8e6b4d4, 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec, 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74, 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c, 37555690f39f78ef69af347d9aff897e07445949, 2920ec61c98b9476781359f05b94da84e80f54d4, 2698731d25823267c29190cb578da9296a0c0d7b

Affected products

VendorProductVersions
LinuxLinuxb8a8684502a0fc852afa0056c6bb2a9273f6fcc0, b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, b8a8684502a0fc852afa0056c6bb2a9273f6fcc0
LinuxLinux3.15, 0, 5.10.253
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-libbpf0
amazon:2023bpftool6.120
amazon:2023bpftool6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-libbpf0
amazon:2023kernel6.120
LinuxLinux6.1.191, 5.15.203, 5.10.253
amazon:2023python3-perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-headers0
amazon:2023kernel-livepatch-6.12.77-99.1400
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-headers0
amazon:2023perf6.120
amazon:2023kernel6.18-libbpf-static0

…and 12 more

Timeline

  • May 27, 2026 CVE Published
  • May 28, 2026 EPSS Score (13 in total, the first dated here)
  • May 29, 2026 Security Advisory (131 in total, the first dated here)
  • Jun 4, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (128 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-45985
vulnetix vdb fixes CVE-2026-45985

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-45985/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›