CVE-2025-70100: lwext4 divide-by-zero in ext4_block_set_lb_size
A divide-by-zero vulnerability in the ext4blocksetlbsize function in src/ext4blockdev.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 lbsize.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
lwext4 1.0.0from your environment.Uninstall or stop using the affected lwext4 1.0.0 library until a patched/fixed version is available.
- Compensating control
Do not mount or process untrusted or potentially malformed ext4 filesystem images. Validate or sandbox filesystem images before processing and restrict image-mounting and image-processing operations to trusted systems/users.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-70100?
The severity of CVE-2025-70100 is rated medium with a CVSS score of 5.5.
How do I fix CVE-2025-70100?
To fix CVE-2025-70100, apply the available patch for the lwext4 1.0.0 library.
What type of vulnerability is CVE-2025-70100?
CVE-2025-70100 is categorized as a divide-by-zero vulnerability.
What is the impact of CVE-2025-70100?
The impact of CVE-2025-70100 is a denial of service due to a malformed ext4 filesystem image.
In which function is CVE-2025-70100 found?
CVE-2025-70100 is located in the ext4_block_set_lb_size function in src/ext4_blockdev.c.