CVE-2025-70100 Details
Description
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.
A divide-by-zero vulnerability has been identified in the lwext4 library version 1.0.0. The issue arises in the ext4_block_set_lb_size function within the src/ext4_blockdev.c file. When the library processes a malformed ext4 filesystem image that contains a zero logical block size, the vulnerability is triggered. The ext4_mount function passes this invalid block size to ext4_block_set_lb_size without proper validation, leading to a Floating-Point Exception (FPE) under sanitizers or a runtime crash in standard builds. This vulnerability can be exploited by providing a crafted ext4 image to an application that uses lwext4 for mounting or image processing.
The vulnerability has been fixed in lwext4 version 1.0.1. Users are advised to upgrade to this version or apply the corresponding patch.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gkostka/lwext4/issues/90 | CISA-ADP | ExploitIssue TrackingPatch |
| http://www.openwall.com/lists/oss-security/2026/06/29/5 | CVE | |
| https://github.com/gkostka/lwext4/issues/90 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/sigdevel/pocs/blob/main/res/lwext4/2/sig8_2_lwext4_ext4_blockdev_c_127 | [email protected] | Exploit |
| https://infosec.exchange/@sigdevel/116668952003072580 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-369 | Divide By Zero | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| gkostka lwext4 | 1.0.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 29, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | Initial Analysis | [email protected] |
| Jun 3, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | New CVE Received | [email protected] |