# CVE-2026-45920: ext4: fix dirtyclusters double decrement on fs shutdown

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-05-27T12:17:38.234Z
- **Modified:** 2026-11-06T16:18:52.317Z

## Who should check

- Anyone running Linux \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 523d5a4df3c649fa305c89efb552ec62a1ce9d3d; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< ca408af08544d96769c93a3d81a7f63f61129e95; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 55576fa14771d33994c29a9ae960e07bb3f56c20; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< dbc4e10619ed87a50e637b96f2e574df36a7a769; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 61e372122b6d95aec940fdaea0a16f988f359897; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 3924aea2c33df3864929c1acd178bfc29d8f005f; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 81982a11406c5da6c6e2b188028e7056e16b7128; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 94a8cea54cd935c54fa2fba70354757c0fc245e3
- Anyone running Linux 2.6.29

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix dirtyclusters double decrement on fs shutdown

fstests test generic/388 occasionally reproduces a warning in
ext4\_put\_super() associated with the dirty clusters count:

  WARNING: CPU: 7 PID: 76064 at fs/ext4/super.c:1324 ext4\_put\_super+0x48c/0x590 \[ext4\]

Tracing the failure shows that the warning fires due to an
s\_dirtyclusters\_counter value of -1. IOW, this appears to be a
spurious decrement as opposed to some sort of leak. Further tracing
of the dirty cluster count deltas and an LLM scan of the resulting
output identified the cause as a double decrement in the error path
between ext4\_mb\_mark\_diskspace\_used() and the caller
ext4\_mb\_new\_blocks().

First, note that generic/388 is a shutdown vs. fsstress test and so
produces a random set of operations and shutdown injections. In the
problematic case, the shutdown triggers an error return from the
ext4\_handle\_dirty\_metadata() call(s) made from
ext4\_mb\_mark\_context(). The changed value is non-zero at this point,
so ext4\_mb\_mark\_diskspace\_used() does not exit after the error
bubbles up from ext4\_mb\_mark\_context(). Instead, the former
decrements both cluster counters and returns the error up to
ext4\_mb\_new\_blocks(). The latter falls into the !ar-\>len out path
which decrements the dirty clusters counter a second time, creating
the inconsistency.

To avoid this problem and simplify ownership of the cluster
reservation in this codepath, lift the counter reduction to a single
place in the caller. This makes it more clear that
ext4\_mb\_new\_blocks() is responsible for acquiring cluster
reservation (via ext4\_claim\_free\_clusters()) in the !delalloc case
as well as releasing it, regardless of whether it ends up consumed
or returned due to failure.

## Affected and fixed versions

- Linux: \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 523d5a4df3c649fa305c89efb552ec62a1ce9d3d; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< ca408af08544d96769c93a3d81a7f63f61129e95; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 55576fa14771d33994c29a9ae960e07bb3f56c20; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< dbc4e10619ed87a50e637b96f2e574df36a7a769; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 61e372122b6d95aec940fdaea0a16f988f359897; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 3924aea2c33df3864929c1acd178bfc29d8f005f; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 81982a11406c5da6c6e2b188028e7056e16b7128; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 94a8cea54cd935c54fa2fba70354757c0fc245e3 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 94a8cea54cd935c54fa2fba70354757c0fc245e3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-45920.md
Affected: Linux >= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, < 523d5a4df3c649fa305c89efb552ec62a1ce9d3d; >= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, < ca408af08544d96769c93a3d81a7f63f61129e95; >= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, < 55576fa14771d33994c29a9ae960e07bb3f56c20; >= 0087d9fb3f29f59e8d42c8b…
Fixed in: Linux 523d5a4df3c649fa305c89efb552ec62a1ce9d3d, Linux 55576fa14771d33994c29a9ae960e07bb3f56c20, Linux 61e372122b6d95aec940fdaea0a16f988f359897, Linux 3924aea2c33df3864929c1acd178bfc29d8f005f, Linux 81982a11406c5da6c6e2b188028e7056e16b7128, Linux 94a8cea54cd935c54fa2fba70354757c0fc245e3

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

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

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

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

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

Linux \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 523d5a4df3c649fa305c89efb552ec62a1ce9d3d; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< ca408af08544d96769c93a3d81a7f63f61129e95; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 55576fa14771d33994c29a9ae960e07bb3f56c20; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< dbc4e10619ed87a50e637b96f2e574df36a7a769; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 61e372122b6d95aec940fdaea0a16f988f359897; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 3924aea2c33df3864929c1acd178bfc29d8f005f; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 81982a11406c5da6c6e2b188028e7056e16b7128; \>= 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, \< 94a8cea54cd935c54fa2fba70354757c0fc245e3; Linux 2.6.29.

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

Yes. Fixed in Linux 523d5a4df3c649fa305c89efb552ec62a1ce9d3d, Linux 55576fa14771d33994c29a9ae960e07bb3f56c20, Linux 61e372122b6d95aec940fdaea0a16f988f359897, Linux 3924aea2c33df3864929c1acd178bfc29d8f005f, Linux 81982a11406c5da6c6e2b188028e7056e16b7128, Linux 94a8cea54cd935c54fa2fba70354757c0fc245e3. Upgrade Linux to 94a8cea54cd935c54fa2fba70354757c0fc245e3 or later.

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

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/523d5a4df3c649fa305c89efb552ec62a1ce9d3d>
- patch: <https://git.kernel.org/stable/c/ca408af08544d96769c93a3d81a7f63f61129e95>
- patch: <https://git.kernel.org/stable/c/55576fa14771d33994c29a9ae960e07bb3f56c20>
- patch: <https://git.kernel.org/stable/c/dbc4e10619ed87a50e637b96f2e574df36a7a769>
- patch: <https://git.kernel.org/stable/c/61e372122b6d95aec940fdaea0a16f988f359897>
- patch: <https://git.kernel.org/stable/c/3924aea2c33df3864929c1acd178bfc29d8f005f>
- patch: <https://git.kernel.org/stable/c/81982a11406c5da6c6e2b188028e7056e16b7128>
- patch: <https://git.kernel.org/stable/c/94a8cea54cd935c54fa2fba70354757c0fc245e3>

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

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