Skip to main content

lwext4 CVE-2025-70100

| EUVDEUVD-2025-210054 MEDIUM
Divide By Zero (CWE-369)
2026-06-03 cve@mitre.org GHSA-43cg-f93f-9jhx
5.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft ext4 image with lb_size=0
  2. Delivery
    Deliver image to target via upload or local path
  3. Exploit
    Application invokes lwext4 mount or parse routine
  4. Execution
    ext4_block_set_lb_size divides by zero lb_size
  5. Persist
    Process crashes with SIGFPE or runtime abort
  6. Impact
    Denial 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 5.5 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
CVSS changed
Jun 03, 2026 - 19:22 NVD
5.5 (MEDIUM)
CVE Published
Jun 03, 2026 - 14:16 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy