CVE-2026-45942
ext4: fix e4b bitmap inconsistency reports
Reported by linux · Published May 27, 2026
In the Linux kernel, the following vulnerability has been resolved: ext4: fix e4b bitmap inconsistency reports A bitmap inconsistency issue was observed during stress tests under mixed huge-page workloads. Ext4 reported multiple e4b bitmap check failures like: ext4_mb_complex_scan_group:2508: group 350, 8179 free clusters as per group info. But got 8192 blocks Analysis and experimentation confirmed that the issue is caused by a race condition between page migration and bitmap modification. Although this timing window is extremely narrow, it is still hit in practice: folio_lock ext4_mb_load_buddy __migrate_folio check ref count folio_mc_copy __filemap_get_folio folio_try_get(folio) ...... mb_mark_used ext4_mb_unload_buddy __folio_migrate_mapping folio_ref_freeze folio_unlock The root cause of this issue is that the fast path of load_buddy only increments the folio's reference count, which is insufficient to prevent concurrent folio migration. We observed that the folio migration process acquires the folio lock. Therefore, we can determine whether to take the fast path in load_buddy by checking the lock status. If the folio is locked, we opt for the slow path (which acquires the lock) to close this concurrency window. Additionally, this change addresses the following issues: When the DOUBLE_CHECK macro is enabled to inspect bitmap-related issues, the following error may be triggered: corruption in group 324 at byte 784(6272): f in copy != ff on disk/prealloc Analysis reveals that this is a false positive. There is a specific race window where the bitmap and the group descriptor become momentarily inconsistent, leading to this error report: ext4_mb_load_buddy ext4_mb_load_buddy __filemap_get_folio(create|lock) folio_lock ext4_mb_init_cache folio_mark_uptodate __filemap_get_folio(no lock) ...... mb_mark_used mb_mark_used_double mb_cmp_bitmaps mb_set_bits(e4b->bd_bitmap) folio_unlock The original logic assumed that since mb_cmp_bitmaps is called when the bitmap is newly loaded from disk, the folio lock would be sufficient to prevent concurrent access. However, this overlooks a specific race condition: if another process attempts to load buddy and finds the folio is already in an uptodate state, it will immediately begin using it without holding folio lock.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-rt-debug-modules | errata.rockylinux.org | 6.12.0-211.61.1.el10, 5.14.0-687.53.1.el9, 4.18.0-553.169.1.rt7.510.el8 |
| kernel-64k-modules | errata.rockylinux.org | 6.12.0-211.61.1.el10, 5.14.0-687.53.1.el9 |
| kernel-modules-core | errata.rockylinux.org | 5.14.0-687.53.1.el9 |
| kernel-debug-devel-matched | errata.rockylinux.org | 6.12.0-211.61.1.el10, 5.14.0-687.53.1.el9 |
| python3-perf | errata.rockylinux.org | 5.14.0-687.53.1.el9, 4.18.0-553.169.1.el8 |
| kernel-rt-64k-debug-modules-extra | errata.rockylinux.org | 5.14.0-687.53.1.el9 |
| kernel-tools | errata.rockylinux.org | 5.14.0-687.53.1.el9 |
| kernel-rt-debug-modules-extra | errata.rockylinux.org | 6.12.0-211.61.1.el10, 4.18.0-553.169.1.rt7.510.el8 |
| kernel-abi-stablelists | errata.rockylinux.org | 6.12.0-211.61.1.el10, 5.14.0-687.53.1.el9, 4.18.0-553.169.1.el8 |
| kernel-core | errata.rockylinux.org | 6.12.0-211.61.1.el10, 5.14.0-687.53.1.el9, 4.18.0-553.169.1.el8 |
| kernel6.18-headers | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel-zfcpdump-modules-extra | errata.rockylinux.org | 6.12.0-211.61.1.el10 |
42 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c9de560ded61faa5b754137b7753da252391c55a, c9de560ded61faa5b754137b7753da252391c55a, c9de560ded61faa5b754137b7753da252391c55a |
| Linux | Linux | 2.6.25, 0, 6.1.191 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| Linux | Linux | 7.0, *, * |
| amazon:2023 | kernel-livepatch-6.12.77-99.140 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-libbpf | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
…and 12 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (12 in total, the first dated here)
- May 29, 2026 Security Advisory (135 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (136 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-45942
vulnetix vdb fixes CVE-2026-45942
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-45942/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart