# CVE-2026-45858: ext4: don't zero the entire extent if EXT4\_EXT\_DATA\_PARTIAL\_VALID1

> 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:15:37.738Z
- **Modified:** 2026-06-25T21:07:42.173Z

## Who should check

- Anyone running Linux \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 58ddae5d77b1db3a27b891c75a8fa120239ac092; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d17857b4fb9ba5745b59be0ef38fd532991fccbf; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 7015fcf473796e1d2d876f241bd9e0c36f3d4eef; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 1bf6974822d1dba86cf11b5f05498581cf3488a2; 814a7833df19e1de7447f870ae890adb12561627; 4319fd00002630a761fa5559a086f11ed7623006; e28b27be06c5e6a5236c0c0b370ca0768ab086bb; \>= 3.2.33, \< 3.3; \>= 3.4.16, \< 3.5; …
- Anyone running Linux 3.7

## Description

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.

## Affected and fixed versions

- Linux: \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 58ddae5d77b1db3a27b891c75a8fa120239ac092; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d17857b4fb9ba5745b59be0ef38fd532991fccbf; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 7015fcf473796e1d2d876f241bd9e0c36f3d4eef; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 1bf6974822d1dba86cf11b5f05498581cf3488a2; 814a7833df19e1de7447f870ae890adb12561627; 4319fd00002630a761fa5559a086f11ed7623006; e28b27be06c5e6a5236c0c0b370ca0768ab086bb; \>= 3.2.33, \< 3.3; \>= 3.4.16, \< 3.5; … (cvelist)
- Linux: 3.7 (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-45858. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45858.md
Affected: Linux >= dee1f973ca341c266229faa5a1a5bb268bed3531, < 58ddae5d77b1db3a27b891c75a8fa120239ac092; >= dee1f973ca341c266229faa5a1a5bb268bed3531, < d17857b4fb9ba5745b59be0ef38fd532991fccbf; >= dee1f973ca341c266229faa5a1a5bb268bed3531, < d67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88; >= dee1f973ca341c266229faa…
Fixed in: Linux 58ddae5d77b1db3a27b891c75a8fa120239ac092, Linux 7015fcf473796e1d2d876f241bd9e0c36f3d4eef, Linux 1bf6974822d1dba86cf11b5f05498581cf3488a2, Linux 3.3, Linux 3.5

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-45858 being exploited?

There is no confirmed exploitation: CVE-2026-45858 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-45858?

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

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

Linux \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 58ddae5d77b1db3a27b891c75a8fa120239ac092; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d17857b4fb9ba5745b59be0ef38fd532991fccbf; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< d67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 7015fcf473796e1d2d876f241bd9e0c36f3d4eef; \>= dee1f973ca341c266229faa5a1a5bb268bed3531, \< 1bf6974822d1dba86cf11b5f05498581cf3488a2; 814a7833df19e1de7447f870ae890adb12561627; 4319fd00002630a761fa5559a086f11ed7623006; e28b27be06c5e6a5236c0c0b370ca0768ab086bb; \>= 3.2.33, \< 3.3; \>= 3.4.16, \< 3.5; …; Linux 3.7.

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

Yes. Fixed in Linux 58ddae5d77b1db3a27b891c75a8fa120239ac092, Linux 7015fcf473796e1d2d876f241bd9e0c36f3d4eef, Linux 1bf6974822d1dba86cf11b5f05498581cf3488a2, Linux 3.3, Linux 3.5. No fix listed yet: follow the vendor advisory.

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

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/58ddae5d77b1db3a27b891c75a8fa120239ac092>
- patch: <https://git.kernel.org/stable/c/d17857b4fb9ba5745b59be0ef38fd532991fccbf>
- patch: <https://git.kernel.org/stable/c/d67c8ecf3d8fda9b8ef80e6f665d84b6d6ac9d88>
- patch: <https://git.kernel.org/stable/c/7015fcf473796e1d2d876f241bd9e0c36f3d4eef>
- patch: <https://git.kernel.org/stable/c/1bf6974822d1dba86cf11b5f05498581cf3488a2>

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

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