Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ext4 image with oversized s_reserved_gdt_blocks and BLOCK_UNINIT groups
-
DeliveryDeliver image to target application
-
ExploitApplication mounts crafted filesystem
-
Executionext4_fs_init_block_bitmap writes past bitmap buffer
-
ImpactHeap corruption crashes application
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an application built on lwext4 (≤1.0.0) to mount an attacker-controlled ext4 filesystem image. The specific trigger is a crafted superblock geometry: an oversized s_reserved_gdt_blocks value together with BLOCK_UNINIT block groups, which causes the computed bitmap size to exceed the fixed block_size buffer during ext4_fs_init_block_bitmap(). Limiting factors: the attack is local (AV:L) - the attacker must get the malicious image to the target and the target must actually mount it (UI:P passive interaction); there is no remote network trigger and no confidentiality exposure. Realistic exposure is therefore highest on devices or services that automatically mount externally supplied or removable ext4 media. |
| Impact | This is a moderate-severity, availability-focused memory-corruption flaw whose real-world risk is constrained by its attack vector. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H) scores 6.9 and tells a consistent story: exploitation is local, requires no authentication, but needs passive user interaction (the victim or an application must mount an attacker-supplied ext4 image), and the dominant impact is availability (VA:H, application crash) with only limited integrity impact (VI:L, heap corruption) and no confidentiality loss (VC:N). No EPSS score, no CISA KEV listing, and no SSVC exploitation/automatable signals were supplied, so there is no evidence of active or widespread exploitation; the vuln.today decision label is 'this_month', indicating routine prioritization rather than emergency action. The signals do not conflict - a local, UI-dependent crash bug in a niche filesystem library with no exploitation telemetry is best treated as a prompt-but-not-urgent patch item. Note that VI:L reflects heap corruption; whether this out-of-bounds write is controllably exploitable beyond a crash is not established by the available sources. |
| Exploit ScenarioDerived | An attacker crafts a malicious ext4 filesystem image whose superblock advertises an oversized s_reserved_gdt_blocks value combined with BLOCK_UNINIT groups, then induces a victim application or service to mount it (e.g., an auto-mounting embedded device, forensic tool, or container runtime using lwext4). When ext4_fs_init_block_bitmap() initializes the block bitmap, it writes past the end of the fixed-size bitmap buffer, corrupting heap memory and crashing the process. No public exploit was identified at time of analysis; exploitation is local and depends on the target mounting the hostile image (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Mounting a crafted ext4 image with lwext4 1.0.0 or earlier can drive a heap out-of-bounds write in ext4_fs_init_block_bitmap(), corrupting memory past the block bitmap buffer and crashing the host application (assessed availability impact High, integrity Low, no confidentiality exposure). The trigger is a superblock geometry that passes an oversized s_reserved_gdt_blocks value alongside BLOCK_UNINIT block groups, so the computed bitmap size exceeds the fixed block_size buffer; exploitation requires the target application to actually mount the attacker-supplied image (UI:P / assessed UI:R), which makes locally or removable-media-supplied images the primary exposure. Severity is moderate (CVSS 4.0 6.9; assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R with A:H), no CISA KEV listing and no public exploit identified at time of analysis, and the priority label is this_month; upstream fix commits are referenced in the advisory.
RemediationAI
Vendor patch data indicates a fix is available; the concrete changes are upstream commit github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908 and downstream commit github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33, which add an ENXIO return in ext4_fs_init_block_bitmap() when (bit_max >> 3) > block_size and an EFAULT return in ext4_fs_init_inode_bitmap() when ((inodes_per_group + 7) / 8) > block_size - note that no tagged fixed release version is confirmed in the available data, so verify your vendored lwext4 revision carries these checks (or backport them) and rebuild. Where patching must be delayed, the actionable compensating controls are: validate untrusted ext4 images before mounting (reject images whose s_reserved_gdt_blocks and BLOCK_UNINIT group descriptors imply a bitmap larger than the filesystem block size), with the trade-off that such pre-screening is only as good as the validator and may reject unusual but legitimate large-metadata filesystems; perform any mounting of externally supplied or removable media inside a sandboxed or low-privilege process so an out-of-bounds write only terminates that process, at the cost of extra process isolation and IPC plumbing; and disable automatic mounting of removable or downloaded ext4 images, which removes the UI:P passive interaction the attack depends on but changes user workflow. Updating is the complete fix - the size checks are the only place the geometry is constrained.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
lwext4 is a standalone C library that implements ext2/ext3/ext4 reading and writing for embedded and cross-platform targets, meaning the vulnerable parser is compiled into any firmware, bootloader or service that embeds it rather than into a kernel that already validates images. The flaw is CWE-787 (out-of-bounds write) inside ext4_fs_init_block_bitmap() (src/ext4_fs.c, lines ~322-334 in v1.0.0), which initializes a block bitmap for a freshly referenced block group: it derives the number of bitmap bits from superblock and group-descriptor geometry (notably s_reserved_gdt_blocks combined with groups flagged BLOCK_UNINIT) and then writes into the bitmap buffer obtained from ext4_bitmap.h (lines ~53-56), whose size is fixed at the filesystem block size. When the computed bit count exceeds block_size*8 bits, the write runs past the allocation into adjacent heap memory; the companion path ext4_fs_init_inode_bitmap() has the analogous size assumption for inodes_per_group. The upstream fix adds explicit bounds checks that return ENXIO when (bit_max >> 3) > block_size and EFAULT when ((inodes_per_group + 7) / 8) > block_size, effectively rejecting geometry that legitimately requires larger blocks. Because the scheduler and descriptor fields come entirely from the on-disk image, an attacker fully controls the arithmetic; no network-facing protocol is involved and the trigger is confirmed to be the mount-time bitmap initialization path rather than ordinary file I/O.
Know when Lwext4 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Local image must be mounted, so AV:L and UI:R; no auth needed (PR:N); impact is a crash (A:H) with limited heap corruption (I:L) and no data disclosure (C:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4_fs_init_block_bitmap() that allows attackers to corrupt heap memory via crafted superblock geometry fields. Attackers can supply an ext4 image with oversized s_reserved_gdt_blocks and BLOCK_UNINIT groups to write past the bitmap buffer, crashing applications that mount it.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Related Vulnerabilities in lwext4 Heap Buffer Overflow Vulnerabilities
View all 2Out-of-bounds read in lwext4 1.0.0's ext4_ext_binsearch_idx function (src/ext4_extent.c) exposes applications to memory
Divide-by-zero in lwext4 1.0.0's ext4_block_set_lb_size function (src/ext4_blockdev.c) crashes any application that moun
An out-of-bounds heap write in lwext4 through 1.0.0 lets a crafted ext4 image corrupt the block-bitmap buffer while the
Heap memory corruption in lwext4 through 1.0.0 allows an attacker who supplies a crafted ext4 image to drive an out-of-b
lwext4 through version 1.0.0 performs an unchecked division during inode-table initialization when mounting an ext4 imag
Opening a crafted ext4 filesystem image with lwext4 through 1.0.0 can crash the host application through an out-of-bound
EUVD-2025-211371
GHSA-jwv4-r7cf-27f5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB