CVE-2026-45985
ext4: don't set EXT4_GET_BLOCKS_CONVERT when splitting before submitting I/O
Check your servers for CVE-2026-45985
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-45985 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: 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.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.00% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 77e407967cd872cd75d7e4a691908e49c8e6b4d4 affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 37555690f39f78ef69af347d9aff897e07445949 affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74 affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 2920ec61c98b9476781359f05b94da84e80f54d4 affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 2698731d25823267c29190cb578da9296a0c0d7b affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec affected from b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, before feaf2a80e78f89ee8a3464126077ba8683b62791
Other versions: unaffected
|
| Linux |
affected 3.15 unaffected before 3.15 unaffected from 5.10.253 up to and including 5.10.* unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.130 up to and including 6.6.* unaffected from 6.12.77 up to and including 6.12.* unaffected from 6.18.17 up to and including 6.18.* unaffected from 6.19.4 up to and including 6.19.* unaffected 7.0 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-45985 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-45985
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-45985
trivy image --scanners vuln IMAGE | grep CVE-2026-45985
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/77e407967cd872cd75d7e4a691908e49c8e6b4d4 git.kernel.org
- https://git.kernel.org/stable/c/37555690f39f78ef69af347d9aff897e07445949 git.kernel.org
- https://git.kernel.org/stable/c/6d8fa684b42724d74a77f980f5ee47cfd1ec7e74 git.kernel.org
- https://git.kernel.org/stable/c/67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c git.kernel.org
- https://git.kernel.org/stable/c/2920ec61c98b9476781359f05b94da84e80f54d4 git.kernel.org
- https://git.kernel.org/stable/c/2698731d25823267c29190cb578da9296a0c0d7b git.kernel.org
- https://git.kernel.org/stable/c/716e7439a5a9b18c3ff882c2f8c834b9ced1aaec git.kernel.org
- https://git.kernel.org/stable/c/feaf2a80e78f89ee8a3464126077ba8683b62791 git.kernel.org
Source: the record CVE-2026-45985 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse