Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ext4 image with lb_size=0
-
DeliveryDeliver image to target via upload or local path
-
ExploitApplication invokes lwext4 mount or parse routine
-
Executionext4_block_set_lb_size divides by zero lb_size
-
PersistProcess crashes with SIGFPE or runtime abort
-
ImpactDenial of service achieved
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 | The target application must attempt to mount or process an ext4 filesystem image supplied or influenced by the attacker (UI:R per CVSS). The malicious image must contain a logical block size value of zero in the relevant superblock or descriptor field - the specific malformed field is what triggers the missing validation in ext4_block_set_lb_size. No authentication or elevated privileges are required to supply the image (PR:N), but the attack is bounded by the local attack vector (AV:L): the attacker must be able to get the malicious image into a position where the target application processes it, whether through a file path, upload, IPC, or physical media. Exploitation is limited to denial-of-service (crash); there is no code execution primitive identified. Applications that only process trusted, internally generated ext4 images are not at meaningful risk. |
| Impact | The CVSS score of 5.5 (Medium) accurately reflects the constrained impact profile: AV:L limits the attack surface to local or application-mediated image processing rather than direct network exploitation; UI:R confirms a human or automated process must actively open the malicious image; and the impact vector (C:N/I:N/A:H) means the sole consequence is a crash - no confidentiality or integrity risk. The absence of a CISA KEV entry and the niche deployment footprint of lwext4 (embedded systems, tooling) reduce real-world urgency compared to the POC availability alone might suggest. However, applications that accept ext4 images from untrusted sources - image converters, forensics tools, embedded bootloader utilities - face a reliable, low-complexity denial-of-service condition. EPSS score was not provided in the source data, so exploitation probability cannot be quantified beyond the POC signal. PR:N in the CVSS vector means an unprivileged attacker can supply the malicious image without any account on the target system, which somewhat elevates practical risk in scenarios where image upload or processing is user-facing. |
| Exploit ScenarioDerived | An attacker crafts a minimal malformed ext4 filesystem image in which the logical block size field is set to zero. This image is then delivered to a target application built on lwext4 1.0.0 - for example, via a file upload interface, a shared storage path, or a malicious USB device. When the application calls the library to mount or inspect the image, ext4_block_set_lb_size performs a division using the zero lb_size value, triggering an immediate process crash. A publicly available POC demonstrating this technique is hosted at https://github.com/sigdevel/pocs/blob/main/res/lwext4/2/sig8_2_lwext4_ext4_blockdev_c_127. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
Divide-by-zero in lwext4 1.0.0's ext4_block_set_lb_size function (src/ext4_blockdev.c) crashes any application that mounts or processes a crafted ext4 filesystem image with a zero logical block size. The CVSS vector (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) confirms the impact is limited to availability - no code execution or data exposure - but the crash is reliable and reproducible. Publicly available exploit code exists demonstrating the issue; no active exploitation has been confirmed by CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis. The upstream bug report is tracked at https://github.com/gkostka/lwext4/issues/90, but no patched release tag or merged fix commit is referenced in the available data. Developers using lwext4 should apply a local patch that validates lb_size is non-zero before any division operation in ext4_block_set_lb_size (src/ext4_blockdev.c, ~line 127) and returns an appropriate error code if the value is zero. As a compensating control, applications should reject or sandbox ext4 images from untrusted sources before passing them to the library - this eliminates the attack surface without modifying the library. Enabling UBSan in development and CI builds will surface further similar issues. Monitor the upstream GitHub repository for a maintainer fix.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
lwext4 is a lightweight, portable C library implementing ext2/ext3/ext4 filesystem support, commonly embedded in firmware, bootloaders, and system utilities that need to read or write ext4 images without a full OS kernel. The vulnerable function ext4_block_set_lb_size in src/ext4_blockdev.c at approximately line 127 performs arithmetic using the logical block size (lb_size) field parsed from the filesystem image without first validating that the value is non-zero. CWE-369 (Divide By Zero) describes this class of missing-validation defects precisely: the program divides or modulos by a value that can be zero under attacker-controlled input. Under memory-safe builds with sanitizers (ASan/UBSan), the fault surfaces as a Floating-Point Exception (SIGFPE); in standard release builds without sanitizers, the behavior is an unhandled runtime crash. Because the vulnerability is triggered during mount or image-open operations, any code path that calls the library to attach an untrusted image is exposed.
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
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
A divide-by-zero vulnerability in the ext4_block_set_lb_size function in src/ext4_blockdev.c of the lwext4 1.0.0 library allows attackers to cause a denial of service by providing a malformed ext4 filesystem image that results in a zero logical block size. The vulnerability is triggered during mount or image processing and leads to a Floating-Point Exception (FPE) under sanitizers or a runtime crash in standard builds due to missing validation of lb_size.
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
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
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-210054
GHSA-43cg-f93f-9jhx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB