CVE-2025-70100: lwext4 divide-by-zero in ext4_block_set_lb_size

Published Jun 3, 2026
·
Updated

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

2 affected components
lwext4=1.0.0
Gkostka Lwext4=1.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove lwext4 1.0.0 from your environment.

    Uninstall or stop using the affected lwext4 1.0.0 library until a patched/fixed version is available.

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

Jun 3, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-70100?

The severity of CVE-2025-70100 is rated medium with a CVSS score of 5.5.

2

How do I fix CVE-2025-70100?

To fix CVE-2025-70100, apply the available patch for the lwext4 1.0.0 library.

3

What type of vulnerability is CVE-2025-70100?

CVE-2025-70100 is categorized as a divide-by-zero vulnerability.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203