VDB

CVE-2026-45858

CVE-2026-45858 PUBLISHED

ext4: don't zero the entire extent if EXT4_EXT_DATA_PARTIAL_VALID1

Reported by linux · Published May 27, 2026

In the Linux kernel, the following vulnerability has been resolved: ext4: don't zero the entire extent if EXT4_EXT_DATA_PARTIAL_VALID1 When allocating initialized blocks from a large unwritten extent, or when splitting an unwritten extent during end I/O and converting it to initialized, there is currently a potential issue of stale data if the extent needs to be split in the middle. 0 A B N [UUUUUUUUUUUU] U: unwritten extent [--DDDDDDDD--] D: valid data |<- ->| ----> this range needs to be initialized ext4_split_extent() first try to split this extent at B with EXT4_EXT_DATA_ENTIRE_VALID1 and EXT4_EXT_MAY_ZEROOUT flag set, but ext4_split_extent_at() failed to split this extent due to temporary lack of space. It zeroout B to N and mark the entire extent from 0 to N as written. 0 A B N [WWWWWWWWWWWW] W: written extent [SSDDDDDDDDZZ] Z: zeroed, S: stale data ext4_split_extent() then try to split this extent at A with EXT4_EXT_DATA_VALID2 flag set. This time, it split successfully and left a stale written extent from 0 to A. 0 A B N [WW|WWWWWWWWWW] [SS|DDDDDDDDZZ] Fix this by pass EXT4_EXT_DATA_PARTIAL_VALID1 to ext4_split_extent_at() when splitting at B, don't convert the entire extent to written and left it as unwritten after zeroing out B to N. The remaining work is just like the standard two-part split. ext4_split_extent() will pass the EXT4_EXT_DATA_VALID2 flag when it calls ext4_split_extent_at() for the second time, allowing it to properly handle the split. If the split is successful, it will keep extent from 0 to A as unwritten.

EPSS 0.16% · 5.2th percentile

Fixed versions

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

PackageEcosystemFixed in
bpftool6.12Amazon Linux1:6.12.77-99.140.amzn2023
bpftoolAmazon Linux1:6.1.168-202.320.amzn2023
kernel6.18-develAmazon Linux1:6.18.15-14.217.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.15-14.217.amzn2023
perf6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel-livepatch-6.18.15-14.217Amazon Linux1:1.0-0.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.168-202.320.amzn2023
LinuxLinuxd67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88, 3.7

Risk scores

EPSS Score
0.16%
5.2th percentile

Affected products

VendorProductVersions
LinuxLinuxdee1f973ca341c266229faa5a1a5bb268bed3531, dee1f973ca341c266229faa5a1a5bb268bed3531, dee1f973ca341c266229faa5a1a5bb268bed3531
LinuxLinux3.7, 0, 6.6.130
amazon:2023bpftool6.120
amazon:2023bpftool0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.18.15-14.2170
amazon:2023kernel-libbpf-static0
LinuxLinux4319fd00002630a761fa5559a086f11ed7623006, 814a7833df19e1de7447f870ae890adb12561627, 7.0
amazon:2023kernel6.180
amazon:2023python3-perf0
amazon:2023bpftool6.180
linuxlinux_kernel3.7, 3.7, 3.7
amazon:2023kernel6.12-devel0
amazon:2023perf6.180
amazon:2023kernel-tools-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-devel0
amazon:2023kernel6.18-tools0

…and 26 more

Timeline

  • May 27, 2026 CVE Published
  • May 28, 2026 EPSS Score (16 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-45858
vulnetix vdb fixes CVE-2026-45858

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-45858/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 ›