Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted ext4 image to target
-
ExploitApplication mounts and parses oversized inode_size
-
ExecutionDivide-by-zero raises SIGFPE
-
ImpactMounting process crashes (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
|
| Exploitation Conditions | Exploitation requires the attacker to supply a crafted ext4 filesystem image in which the superblock declares an inode_size larger than the block size (and not a power of two) with uninitialized inode-table flags, and then have a victim application mount or parse that image using lwext4 - the code path runs through ext4_fs_init_inode_table() via an inadequate ext4_sb_check(). Limiting factors: this is a local vector (AV:L) requiring the attacker to deliver the image to the target, and it requires user/application interaction (UI:P) to mount it; it does not grant code execution or data access (VC:N/VI:N), only a crash. Default behavior of applications that validate images before mounting, or that have adopted the fixed ext4_sb_check(), will reject the oversized inode_size. |
| Impact | This is a denial-of-service-only flaw (CWE-369 divide-by-zero) with modest real-world risk. The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) and score of 6.8 are internally consistent with the description: no confidentiality or integrity impact, availability-only, and local vector gated by passive user interaction (an application mounting an attacker-supplied image). There is no CISA KEV listing and no EPSS score was supplied, and no exploit flag is set, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (routine patch priority), not act_now or emergency. The crash condition is publicly documented (VulnCheck advisory, GitHub issue #174, and a source-line reference), and a vendor fix exists, but nothing in the input confirms weaponized exploit code. SSVC-style reading: technical impact is partial (crash of the mounting process, not code execution), exploitation is not observed, and automatability is limited because the attacker must get a crafted image mounted locally. Net: a legitimate but low-to-moderate priority issue - the high VA:H sub-score reflects a reliable crash, not a high-severity system compromise. |
| Exploit ScenarioDerived | An attacker crafts a malformed ext4 filesystem image whose superblock declares an inode_size larger than the block size and leaves inode-table flags uninitialized, then gets a victim application or service to mount or parse it (e.g., an auto-mounter, forensic tool, firmware updater, or embedded storage handler using lwext4). During ext4_fs_init_inode_table() the oversized value drives a divide-by-zero, raising SIGFPE and crashing the mounting process. The trigger mechanism is publicly described in the VulnCheck advisory and issue #174, but no verified working exploit code is confirmed in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
lwext4 through version 1.0.0 performs an unchecked division during inode-table initialization when mounting an ext4 image, so a crafted superblock with an inode_size larger than the block size raises SIGFPE and terminates the mounting application. The flaw is a missing validation in ext4_sb_check(), which accepts malformed inode_size and log_block_size values before ext4_fs_init_inode_table() in src/ext4_fs.c uses them in a division. Exploitation is local and requires the victim to mount or parse an attacker-supplied image (per the assessed vector, AV:L/AC:L/PR:N/UI:R, availability-only impact); the result is a crash, not code execution or data exposure, and no public exploit or CISA KEV listing was identified at time of analysis. Upstream fixes are available as commits, and no released patched version was independently confirmed.
RemediationAI
Apply the upstream fixes: commit https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908 in gkostka/lwext4, mirrored as https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1 (patch references also include PR https://github.com/gkostka/lwext4/pull/111). These changes make ext4_sb_check() reject a log_block_size that produces a block size outside 1 KiB-64 KiB, an inode_size that is not a power of two, and an inode_size larger than the block size, so malformed images fail to mount with an error instead of trapping. No tagged patched release version was confirmed in the available data, so vendors embedding lwext4 should backport the ext4_super.c change rather than assume a fixed release artifact exists. Where patching is not yet possible, the actionable compensating controls are: pre-validate every untrusted ext4 image on a separate, non-critical host with e2fsprogs before letting the lwext4-based application open it, rejecting images whose inode size exceeds the block size (trade-off: extra tooling and a latency step in the image pipeline, and e2fsprogs is stricter than lwext4 so some images it accepts may still differ in behavior); run the mounting/parsing component in a separate, restartable process or sandbox so a SIGFPE terminates only that worker rather than the whole service (trade-off: process isolation overhead, and the crash still has to be handled as a controlled restart); and restrict which principals or channels can hand images to the parsing component, since the assessed vector is local with user interaction (trade-off: reduced flexibility in update and ingestion workflows). Applications that already validate images before mounting will reject the oversized inode_size and are unaffected.
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
ext4 stores geometry in the superblock: s_log_block_size is a shift used to derive the block size, and s_inode_size is a 16-bit field giving the size of each inode. lwext4's ext4_sb_check() previously validated neither relationship, so an image could declare an inode_size that is not a power of two and/or exceeds the block size. Downstream, ext4_fs_init_inode_table() in src/ext4_fs.c (lines around 429-441 of the v1.0.0 tree) divides by that inode size while deriving the inode-table layout; a zero or malformed divisor surfaces as a hardware divide-by-zero trap (SIGFPE) that kills the process. The root cause class is CWE-369 (Divide by Zero), i.e. missing input validation on untrusted on-disk metadata rather than a memory-safety defect. The upstream fix hardens ext4_sb_check() by rejecting a log_block_size that yields a block size outside 1 KiB-64 KiB, requiring inode_size to be a power of two, and requiring inode_size to be no larger than the block size. Related upstream work (Aladdin-R-D commit b32c5498) also hardens extent-path handling in src/ext4_extent.c, returning EIO instead of succeeding with a freed path. Because lwext4 is an embeddable library, its exposure depends entirely on the host application: firmware updaters, bootloaders, forensics tools and any service that opens untrusted ext4 images. The trigger conditions beyond the malformed superblock fields (for example any additional uninitialized inode-table flag combinations) are only partially described in the available sources.
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:N/VA:H/SC:N/SI:N/SA:N
Attacker supplies a local crafted image that an application must mount (AV:L, UI:R), no authentication needed (PR:N), and the only impact is a reliable process crash (A:H; C:N/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
lwext4 through 1.0.0 contains a divide-by-zero vulnerability in ext4_fs_init_inode_table() in src/ext4_fs.c because ext4_sb_check() does not reject inode sizes larger than the block size. Attackers can supply a crafted ext4 image with an oversized inode_size and uninitialized inode table flags, raising SIGFPE and 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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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 memory corruption in lwext4 through 1.0.0 allows an attacker who supplies a crafted ext4 image to drive an out-of-b
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
Opening a crafted ext4 filesystem image with lwext4 through 1.0.0 can crash the host application through an out-of-bound
EUVD-2026-137770
GHSA-vj3w-7r4r-gvwp
NVD
CVE.org
EPSS
VulDB
Exploit-DB