CVE-2026-45920
ext4: fix dirtyclusters double decrement on fs shutdown
Reported by linux · Published May 27, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18-headers | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel6.18-libbpf-devel | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
20 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, 0087d9fb3f29f59e8d42c8b058376d80e5adde4c |
| Linux | Linux | 2.6.29, 0, 5.10.253 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
…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-45920
vulnetix vdb fixes CVE-2026-45920
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-45920/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart