# CVE-2026-45985: ext4: don't set EXT4\_GET\_BLOCKS\_CONVERT when splitting before submitting I/O

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-05-27T12:18:43.844Z
- **Modified:** 2026-11-06T17:17:28.480Z

## Who should check

- Anyone running Linux \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 77e407967cd872cd75d7e4a691908e49c8e6b4d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 37555690f39f78ef69af347d9aff897e07445949; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2920ec61c98b9476781359f05b94da84e80f54d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2698731d25823267c29190cb578da9296a0c0d7b; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< feaf2a80e78f89ee8a3464126077ba8683b62791
- Anyone running Linux 3.15

## 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.

## Affected and fixed versions

- Linux: \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 77e407967cd872cd75d7e4a691908e49c8e6b4d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 37555690f39f78ef69af347d9aff897e07445949; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2920ec61c98b9476781359f05b94da84e80f54d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2698731d25823267c29190cb578da9296a0c0d7b; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< feaf2a80e78f89ee8a3464126077ba8683b62791 (cvelist)
- Linux: 3.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45985. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45985.md
Affected: Linux >= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, < 77e407967cd872cd75d7e4a691908e49c8e6b4d4; >= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, < 37555690f39f78ef69af347d9aff897e07445949; >= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, < 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74; >= b8a8684502a0fc852afa005…
Fixed in: Linux 77e407967cd872cd75d7e4a691908e49c8e6b4d4, Linux 37555690f39f78ef69af347d9aff897e07445949, Linux 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74, Linux 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c, Linux 2920ec61c98b9476781359f05b94da84e80f54d4, Linux 2698731d25823267c29190cb578da9296a0c0d7b, Linux 716e7…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45985 being exploited?

There is no confirmed exploitation: CVE-2026-45985 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45985?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45985?

Linux \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 77e407967cd872cd75d7e4a691908e49c8e6b4d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 37555690f39f78ef69af347d9aff897e07445949; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2920ec61c98b9476781359f05b94da84e80f54d4; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 2698731d25823267c29190cb578da9296a0c0d7b; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec; \>= b8a8684502a0fc852afa0056c6bb2a9273f6fcc0, \< feaf2a80e78f89ee8a3464126077ba8683b62791; Linux 3.15.

### Is there a fix for CVE-2026-45985?

Yes. Fixed in Linux 77e407967cd872cd75d7e4a691908e49c8e6b4d4, Linux 37555690f39f78ef69af347d9aff897e07445949, Linux 6d8fa684b42724d74a77f980f5ee47cfd1ec7e74, Linux 67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c, Linux 2920ec61c98b9476781359f05b94da84e80f54d4, Linux 2698731d25823267c29190cb578da9296a0c0d7b, Linux 716e7439a5a9b18c3ff882c2f8c834b9ced1aaec. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45985?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/77e407967cd872cd75d7e4a691908e49c8e6b4d4>
- patch: <https://git.kernel.org/stable/c/37555690f39f78ef69af347d9aff897e07445949>
- patch: <https://git.kernel.org/stable/c/67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c>
- patch: <https://git.kernel.org/stable/c/2920ec61c98b9476781359f05b94da84e80f54d4>
- patch: <https://git.kernel.org/stable/c/2698731d25823267c29190cb578da9296a0c0d7b>
- patch: <https://git.kernel.org/stable/c/716e7439a5a9b18c3ff882c2f8c834b9ced1aaec>
- patch: <https://git.kernel.org/stable/c/feaf2a80e78f89ee8a3464126077ba8683b62791>
- other: <https://git.kernel.org/stable/c/6d8fa684b42724d74a77f980f5ee47cfd1ec7e74>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45985>

HTML: <https://flawdb.com/CVE-2026-45985> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45985>
