VDB

CVE-2026-45920

CVE-2026-45920 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.18-headersAmazon Linux1:6.18.15-14.217.amzn2023
kernel-libbpfAmazon Linux1:6.1.168-202.320.amzn2023
kernel-develAmazon Linux1:6.1.168-202.320.amzn2023
kernel-toolsAmazon Linux1:6.1.168-202.320.amzn2023
python3-perf6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.77-99.140.amzn2023
bpftool6.18Amazon Linux1:6.18.15-14.217.amzn2023
kernel6.18-libbpf-develAmazon Linux1:6.18.15-14.217.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.77-99.140.amzn2023
perf6.12Amazon Linux1:6.12.77-99.140.amzn2023

20 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux0087d9fb3f29f59e8d42c8b058376d80e5adde4c, 0087d9fb3f29f59e8d42c8b058376d80e5adde4c, 0087d9fb3f29f59e8d42c8b058376d80e5adde4c
LinuxLinux2.6.29, 0, 5.10.253
amazon:2023kernel6.18-headers0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023kernel-tools0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-libbpf0
amazon:2023bpftool6.180
amazon:2023kernel6.18-libbpf-devel0
amazon:2023kernel6.12-tools0
amazon:2023perf6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-headers0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023python3-perf6.180
amazon:2023kernel-libbpf-devel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›