Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious ext4 image
-
DeliveryDeliver image to victim host
-
ExploitApplication mounts image via lwext4
-
ExecutionCrafted superblock yields group_blocks above INT_MAX
-
Persiststart_bit goes negative in bitmap init
-
ImpactOut-of-bounds heap write crashes mounting 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 the attacker to supply a crafted ext4 image and have a victim application built on lwext4 (through 1.0.0) mount/parse it; the trigger is in ext4_fs_init_block_bitmap() → ext4_fs_mark_bitmap_end(), where attacker-controlled superblock fields (blocks count, first_data_block, blocks_per_group) produce a group_blocks value above INT_MAX, driving start_bit negative and writing far past the block-bitmap buffer. Limiting factors that reduce real-world risk: the attack vector is LOCAL (AV:L) and demands passive user interaction (UI:P) - a victim must actually open the malicious image - so there is no remote, unauthenticated, default-config exposure; the demonstrated impact is a crash (availability) of the mounting process. Only systems that parse untrusted ext4 images with an unpatched lwext4 are exposed. |
| Impact | This is a moderate, defense-in-depth priority rather than an emergency. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H) describes a LOCAL vector that requires passive user interaction - the victim must mount/parse an attacker-supplied ext4 image - and the dominant impact is availability (VA:H, a crash) with only limited integrity impact (VI:L) and no confidentiality impact (VC:N). The vuln.today decision label is 'this_month', not act_now or emergency, which is consistent with the local vector and crash-dominant impact. No KEV listing is present, so there is no confirmed active exploitation; no EPSS score was supplied, so statistical exploitation probability cannot be stated. Reporting is by VulnCheck and a public GitHub issue (#172) plus the exact vulnerable source lines are cited, so the defect is well-documented, but the input does not mark any reference as confirmed working exploit code. Net: a real bug worth patching on a normal cycle, not a high-CVSS-but-phantom issue, yet constrained by the need to deliver and have a victim mount a crafted image. Note a minor tension to verify: the base score is 6.9 while impact is described as 'crashing the mounting application' (a denial-of-service outcome), so whether heap corruption is leverageable beyond a crash is not established by the sources. |
| Exploit ScenarioDerived | An attacker crafts a malicious ext4 filesystem image whose superblock fields (block count / blocks-per-group) make the computed group_blocks exceed INT_MAX. When a user or service running an application built on lwext4 (through 1.0.0) mounts or parses that image, ext4_fs_mark_bitmap_end() computes a negative start_bit and writes hundreds of MiB past the bitmap buffer, corrupting the heap and crashing the process. A public GitHub issue and VulnCheck advisory document the flaw, but the input does not confirm working exploit code - no public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Heap memory corruption in lwext4 through 1.0.0 allows an attacker who supplies a crafted ext4 image to drive an out-of-bounds write when the image is mounted or parsed by a victim application built on the library. Crafted superblock fields (blocks count, first_data_block, blocks_per_group) yield a group_blocks value above INT_MAX, which turns start_bit negative inside ext4_fs_mark_bitmap_end() and makes the routine write hundreds of MiB past the block-bitmap buffer, crashing the mounting process and potentially corrupting adjacent heap memory. Exploitation is local and requires passive user interaction - a victim must open the malicious image - so exposure is limited to systems that parse untrusted ext4 images with an unpatched build; no CISA KEV entry and no public exploit code were identified at time of analysis, and the priority is a moderate, defense-in-depth fix rather than an emergency.
RemediationAI
Vendor-released patch: apply the upstream fix commit 2760ed20808fd63b0fde9150157531fe8190c0b7 (https://github.com/Aladdin-R-D/lwext4/commit/2760ed20808fd63b0fde9150157531fe8190c0b7), which converts the bitmap-end parameters to uint32_t, validates bmp_blk and inode_table against the filesystem and group bounds, and rejects images where group_blocks exceeds the bitmap bit count; a tagged lwext4 release containing this change was not independently confirmed, so integrators should verify the commit is present in their vendored copy. Until a patched build is deployed, restrict the library to mounting only self-generated or otherwise trusted ext4 images and never mount attacker-supplied images in a privileged or long-lived process - performing mounts inside a sandboxed, resource-limited child process that is restarted on failure limits the blast radius to a crash instead of heap corruption in the host application, at the cost of the added isolation overhead and loss of in-process caching. Reviewing the advisory at https://www.vulncheck.com/advisories/lwext4-through-1.0.0-out-of-bounds-write-via-ext4-fs-mark-bitmap-end and the upstream issue https://github.com/gkostka/lwext4/issues/172 provides the reproduction and code-level detail needed to backport the checks if a full library upgrade is not possible.
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 portable, dependency-free C library for reading and writing ext4 filesystems, commonly embedded in firmware, bootloaders, recovery tools and forensic/imaging utilities. The flaw is a CWE-787 out-of-bounds write that arises in ext4_fs_init_block_bitmap() (src/ext4_fs.c), which initialises the block bitmap of a block group before writing it back. The function sizes the bitmap as block_size * 8 bits and derives group_blocks from superblock fields; the value is passed, along with start_bit, as a signed int into ext4_fs_mark_bitmap_end(). When a crafted image makes group_blocks exceed INT_MAX, start_bit becomes negative, and the round-up loop condition ((start_bit + 7) & ~7UL) combined with bit-setting far past the buffer produces the out-of-bounds write. The supplied fix converts start_bit/end_bit/loop counters to uint32_t, uses a 64-bit inode_table_bcnt, rejects block-bitmap or inode-table blocks that fall outside the filesystem or outside their own group when flex_bg is disabled, and adds a hard check returning EIO when group_blocks > bmp_bits; the same commit also adds bounds checks on the directory index checksum region (cnt > limit) in src/ext4_dir_idx.c. The trigger is described in the sources as attacker-controlled superblock fields in a crafted ext4 image; the demonstrated impact in the assessment is availability (crash of the mounting application) with a low integrity effect.
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
Attacker needs no privileges but must deliver a crafted image a local victim mounts, so AV:L/PR:N/UI:R; impact is a crash (A:H) with limited heap-integrity effect (I:L) and no confidentiality loss.
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_mark_bitmap_end() in src/ext4_fs.c that allows attackers to corrupt heap memory via a crafted ext4 image. Attackers can supply superblock fields yielding group_blocks above INT_MAX, making start_bit negative and writing hundreds of MiB past the bitmap buffer, crashing the mounting application.
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.
Out-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-based memory corruption in lwext4 through 1.0.0 is triggered when the library mounts a crafted ext4 image whose sup
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_bi
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-2026-137769
GHSA-c7m3-5qc6-h5jq
NVD
CVE.org
EPSS
VulDB
Exploit-DB