Skip to main content

lwext4 EUVDEUVD-2025-210055

| CVE-2025-70101 MEDIUM
Out-of-bounds Read (CWE-125)
2026-06-03 cve@mitre.org GHSA-4v99-r46p-gx3v
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious ext4 image with invalid extent header
  2. Delivery
    Deliver image to lwext4-backed application
  3. Exploit
    Application invokes ext4_ext_binsearch_idx during extent tree traversal
  4. Execution
    Insufficient header validation triggers out-of-bounds pointer
  5. Persist
    Out-of-bounds memory read occurs
  6. Impact
    Memory disclosure or process crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a victim application incorporates the lwext4 library at version 1.0.0 and actively processes an attacker-supplied ext4 filesystem image - the attacker must be able to influence which image file the application parses (e.g., through a file upload interface, user-selected mount operation, or network-delivered image). The CVSS UI:R confirms that a victim action (processing the image) is a prerequisite; the vulnerability cannot be triggered purely by passive network exposure without an intermediary application that accepts ext4 input. No authentication is required (PR:N) from the attacker's side. Exploitation is limited by: (1) deployments processing only internal or pre-validated images from trusted pipelines face significantly reduced risk; (2) the vulnerable code path is specific to ext4 extent tree traversal, so images that use the traditional indirect block mapping mode rather than extents may not trigger ext4_ext_binsearch_idx at all; (3) applications that do not expose an ext4 image ingestion surface to external users are not directly exploitable over the network.

Impact

The CVSS 6.5 base score (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) reflects a network-reachable, low-complexity attack requiring no privileges, but mandating user or application interaction to process the malicious image - meaningfully constraining opportunistic exploitation. A notable conflict exists in the available data: the CVE description and tags characterize the impact as denial of service, yet the CVSS vector assigns C:H (high confidentiality impact) and A:N (no availability impact). These signals are contradictory and should be explicitly verified with library maintainers or NVD analysts before assuming either characterization is authoritative. No EPSS score was provided, and no CISA KEV listing was found, indicating no confirmed active exploitation at the time of analysis. However, the existence of a public POC on GitHub lowers the skill bar for exploitation and warrants accelerated patch monitoring for any deployment directly processing untrusted ext4 images. This is not a generic high-CVSS-but-low-risk finding - the public POC and network-reachable vector make it a real operational concern for affected consumers.

Exploit ScenarioDerived

An attacker crafts a malicious ext4 filesystem image with manipulated extent header fields - specifically setting eh_entries to a value that causes ext4_ext_binsearch_idx to compute an out-of-bounds index - and delivers this image to a victim system running an application backed by lwext4 (for example, via a file upload endpoint, a network share, or an embedded image in another file format). When the victim application attempts to parse or mount the image, the binary search traverses beyond the allocated extent buffer, either crashing the process or leaking adjacent memory contents. A publicly available POC at https://github.com/sigdevel/pocs/blob/main/res/lwext4/3/sig11_lwext4_ext4_extent_815 confirms the technique is demonstrable against version 1.0.0.

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

Out-of-bounds read in lwext4 1.0.0's ext4_ext_binsearch_idx function (src/ext4_extent.c) exposes applications to memory disclosure or process crashes when parsing a specially crafted ext4 filesystem image. Insufficient validation of extent header fields before binary search traversal of the extent index tree allows invalid pointer arithmetic, resulting in reads beyond the allocated buffer boundary. A publicly available exploit exists on GitHub; no CISA KEV listing has been confirmed, but the combination of a network-deliverable attack vector and public POC elevates practical urgency for lwext4 consumers.

RemediationAI

No vendor-released patch has been identified at the time of analysis - no fixed version is confirmed in any available reference. Consumers should actively monitor the upstream GitHub repository at https://github.com/gkostka/lwext4/issues/91 for a patch release. As interim compensating controls: (1) Restrict lwext4-based applications to processing only cryptographically integrity-verified ext4 images from trusted sources, which breaks the attacker-controlled-image delivery path but requires a trusted image pipeline; (2) Sandbox or isolate processes that invoke lwext4 parsing using OS-level mechanisms such as seccomp-bpf filters, Linux namespaces, or containers, which limits the blast radius of a successful out-of-bounds read by restricting what memory is accessible; (3) If direct source modification is feasible, add explicit bounds validation of extent header fields (particularly eh_entries) against the known allocated buffer size before the binary search loop in ext4_ext_binsearch_idx - the upstream issue at https://github.com/gkostka/lwext4/issues/91 provides context for where the check is missing.

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 implementation of the ext4 filesystem commonly embedded in cross-platform and resource-constrained environments. The vulnerable function ext4_ext_binsearch_idx in src/ext4_extent.c implements a binary search over ext4 extent index entries to locate the correct leaf node during extent tree traversal. The ext4 extent header contains fields such as eh_entries that define the valid range of entries; without adequate bounds validation of these header fields before initiating the search, a manipulated filesystem image can cause the binary search to compute pointers outside the allocated extent buffer. CWE-125 (Out-of-bounds Read) characterizes this root cause: the function reads attacker-controlled data beyond the intended buffer boundary, which may expose adjacent memory or trigger a segmentation fault. This class of bug is especially impactful in filesystem parsers because the attacker fully controls the on-disk layout of the malicious image.

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 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

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

Lifecycle Timeline

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% 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
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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