Look up another CVE · open CVE-2026-45942 in the interactive tracker
CVE-2026-45942
ext4: fix e4b bitmap inconsistency reports
Published 2026-05-27 (5 months ago) by the Linux kernel CNA. Subsystem fs/ext4. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2026-45942 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.12.85-1 | Update the kernel and reboot. Fixed in 6.12.85-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.18.14-1 | Update the kernel and reboot. Fixed in 6.18.14-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.18.14-1 | Update the kernel and reboot. Fixed in 6.18.14-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
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.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
fs/ext4/mballoc.c
- What this is
- EXT4 FILE SYSTEMMAINTAINERS section matched on fs/ext4/ · linux-ext4@vger.kernel.org · Maintained
- Kernel module
- ext4
Check it on the machine
grep -w CONFIG_EXT4_FS /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
lsmod | grep -w ext4Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.
Show whether Debian builds this, per release
Debian builds this code. Every release below compiles the affected file into the kernels it ships.
- bookworm, trixie, forky, sidb
- b
- built in on some flavours, a module on others
- Build switch
- CONFIG_EXT4_FS
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2026-05-27 (5 months ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.10%, higher than 0.8% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- fs/ext4
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 2.6.25 | 6.6.130 | 57e83bfbe1e4 |
| 2.6.25 | 6.12.75 | c05033cfc5c7 |
| 2.6.25 | 6.18.14 | 29a07d691d28 |
| 2.6.25 | 6.19.4 | f29709a7a3fc |
| 2.6.25 | 7.0 | bdc56a9c46b2 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The vulnerability is reached through local filesystem block-allocation activity combined with local folio migration (compaction/NUMA/huge-page reclaim), which is a kernel memory-management event an attacker induces locally; there is no remote path that controls the migration side of the race.
- AC:LAttack complexity, low
- The attacker controls both sides of the race—heavy block-allocation I/O plus memory pressure that forces folio migration—and the commit confirms the window "is still hit in practice" under sustained workloads, so it is reliably reproducible by an attacker-constructed workload.
- PR:LPrivileges required, low
- An ordinary unprivileged local user with write access to any ext4 filesystem (e.g., /tmp or /home) can drive block allocation and induce memory migration; no elevated capabilities are required.
- UI:NUser interaction, none
- The attacker performs all actions (file writes plus memory pressure) on an already-mounted filesystem with no action by any other user.
- S:UScope, unchanged
- The corruption is confined to the ext4 filesystem and kernel within the same security authority; no VM, sandbox, or IOMMU boundary is crossed.
- C:HConfidentiality impact, high
- A lost bitmap update can cause block double-allocation, assigning the same physical block to two inodes so one user can read data written by another on a shared filesystem, constituting significant information disclosure.
- I:HIntegrity impact, high
- The race corrupts buddy-bitmap/group-descriptor consistency and can double-allocate blocks, leading to file-data corruption (one file's writes overwriting another's) and persistent on-disk metadata inconsistency.
- A:HAvailability impact, high
- Detected inconsistency invokes ext4_grp_locked_error()/ext4_handle_error(), which aborts the journal and remounts the filesystem read-only (or panics the kernel with errors=panic), rendering the filesystem—potentially the root filesystem—unavailable.