CVE-2025-70101
Analyzed Analyzed - Analysis Complete
Out-of-Bounds Read in lwext4 1.0.0 Library

Publication date: 2026-06-03

Last updated on: 2026-06-05

Assigner: MITRE

Description
An out-of-bounds read in the ext4_ext_binsearch_idx function in src/ext4_extent.c of the lwext4 1.0.0 library allows attackers to cause a denial of service by supplying a specially crafted ext4 filesystem image. The vulnerability occurs due to insufficient validation of extent header fields before performing a binary search over extent index entries, which can result in invalid pointer calculations and an out-of-bounds memory read during extent tree traversal.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-03
Last Modified
2026-06-05
Generated
2026-06-24
AI Q&A
2026-06-03
EPSS Evaluated
2026-06-22
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
gkostka lwext4 1.0.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2025-70101 is an out-of-bounds read vulnerability in the lwext4 1.0.0 library, specifically in the ext4_ext_binsearch_idx function within src/ext4_extent.c. The issue arises because the function does not properly validate extent header fields before performing a binary search on extent index entries. When the extent header's entries field is zero but the depth field indicates an internal node, the function uses macros that return invalid pointers. This causes the binary search to read memory beyond the allocated buffer, leading to an out-of-bounds memory read during extent tree traversal.

This invalid memory access can cause a segmentation fault or crash when processing specially crafted or corrupted ext4 filesystem images.

Impact Analysis

This vulnerability can be exploited by attackers supplying a specially crafted ext4 filesystem image to cause a denial of service (DoS) condition. The out-of-bounds read leads to a segmentation fault, crashing the application or system component using the lwext4 library to process the filesystem image.

Such a denial of service could disrupt services or applications relying on the lwext4 library for ext4 filesystem handling, potentially leading to system instability or downtime.

Detection Guidance

This vulnerability can be detected by testing the lwext4 library's handling of ext4 filesystem images, specifically by attempting to mount or process specially crafted or fuzzed ext4 images that trigger the out-of-bounds read in the ext4_ext_binsearch_idx function.

A fuzzing tool such as afl_ext4_mount_read was used to trigger the vulnerability, which causes a segmentation fault or AddressSanitizer error when processing corrupted ext4 images.

To detect the issue, you can attempt to mount suspicious or untrusted ext4 filesystem images using the vulnerable lwext4 library version 1.0.0 and monitor for crashes or segfaults.

No specific detection commands are provided in the available resources, but using fuzzing tools or monitoring logs for segmentation faults during ext4 image processing can help identify the vulnerability.

Mitigation Strategies

Immediate mitigation steps include avoiding the use of untrusted or specially crafted ext4 filesystem images with the vulnerable lwext4 library version 1.0.0.

Since the vulnerability arises from insufficient validation in the ext4_ext_binsearch_idx function, applying patches or updates to the lwext4 library that fix this validation issue is recommended once available.

In the absence of an official patch, restricting access to systems that process ext4 images with lwext4 and monitoring for crashes can reduce the risk of denial of service.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-70101. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart