lwext4 CVE-2025-70099
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target embedding lwext4 1.0.0
-
DeliveryCraft malformed EXT4 image with bad directory entry
-
ExploitDeliver image via USB/SD/upload
-
ExecutionVictim invokes directory iteration
-
PersistNULL deref in ext4_dir_en_get_name_len
-
ImpactProcess segfault and denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to parse an attacker-supplied EXT4 filesystem image using lwext4 1.0.0 (or a downstream copy of the equivalent 2016-era code) and to reach the directory iteration path that calls ext4_dir_en_get_name_len. No authentication or user interaction beyond image ingestion is required, and no special build configuration is needed - the missing pointer validation is present in stock 1.0.0. Limiting factors: the attacker must control the on-disk image bytes the victim mounts, so reachability depends on the integrating product's attack surface (auto-mount of removable media, network-delivered images, forensic ingestion pipelines); products that only mount images from trusted local sources have substantially reduced exposure, and the CVSS AV:N rating overstates network reachability for the typical embedded lwext4 deployment. |
| Impact | The CVSS 7.5 score (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) reflects pure availability impact with no confidentiality or integrity loss, and the AV:N rating presumes the malformed image reaches the parser over a network channel - a generous interpretation, since lwext4 typically parses local images and many real-world deployments would be AV:L. EPSS is extremely low (0.02%, 4th percentile) and the vulnerability is not in CISA KEV, indicating no observed active exploitation despite publicly available POC code. SSVC-style decomposition: exploitation status is POC-only, automatable is plausible (a single malformed image triggers the crash), but technical impact is limited to denial of service in a single process. Net real-world priority is low-to-moderate - meaningful only for products that mount untrusted EXT4 images as part of their attack surface (forensic tools, recovery utilities, embedded firmware accepting USB/SD media). |
| Exploit ScenarioDerived | An attacker crafts an EXT4 filesystem image containing a directory block with malformed entry headers and delivers it to a target - for example as a USB drive plugged into an embedded device, an SD card inserted into a recovery appliance, or an image uploaded to a forensic analysis service. When the victim application iterates the directory using lwext4, ext4_dir_en_get_name_len dereferences an invalid pointer and the process segfaults; a public POC (sigdevel/pocs sig11_2_1_lwext4_ext4_dir_h_126) demonstrates the crash. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 02, 2026
Denial of service in lwext4 1.0.0 allows remote attackers to crash applications by supplying a malformed EXT4 filesystem image that triggers a NULL pointer dereference in ext4_dir_en_get_name_len during directory iteration. The flaw affects the 2016-era lwext4 codebase commonly embedded in IoT, bootloaders, and forensic tools that mount untrusted EXT4 images. Publicly available exploit code exists, though EPSS rates real-world exploitation probability as very low (0.02%, 4th percentile).
RemediationAI
No vendor-released patch identified at time of analysis - the GitHub issue at https://github.com/gkostka/lwext4/issues/89 documents the bug but no tagged patched release is linked in the provided references, so integrators should track that issue and apply any upstream fix or carry a local patch that validates the directory entry pointer and name_len bounds before dereference in ext4_dir_en_get_name_len. As compensating controls until an upstream fix lands, restrict the parser to images from trusted sources only (do not auto-mount user-supplied USB/SD/network images), wrap mount operations in a separate process or sandbox so a segfault cannot crash the host application, and where feasible run image parsing under seccomp or with watchdog-based restart so a DoS does not become a persistent outage. Trade-off: process isolation and sandboxing add complexity and may not be feasible on the deeply embedded targets that lwext4 is designed for.
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 EXT2/3/4 filesystem implementation written in C, widely embedded in resource-constrained environments such as bootloaders, embedded Linux derivatives, microcontroller firmware, and disk forensic utilities where the full kernel ext4 driver is impractical. The vulnerable function ext4_dir_en_get_name_len in include/ext4_dir.h reads the name_len field from an ext4_dir_en directory entry structure without first validating that the pointer to the entry itself is non-NULL or that the entry lies within the bounds of the parsed directory block. This is a classic CWE-476 (NULL Pointer Dereference) caused by missing input validation when iterating over an attacker-controlled on-disk structure, and reflects an entire class of filesystem-parser bugs where on-disk metadata is trusted to be well-formed.
Know when N A 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
A NULL pointer dereference in the ext4_dir_en_get_name_len function in include/ext4_dir.h of lwext4 1.0.0 allows attackers to cause a denial of service by supplying a specially crafted EXT4 filesystem image with malformed directory entries. During directory iteration, the code may fail to validate the directory entry pointer before accessing the name_len field, resulting in a segmentation fault. This affects versions based on (or equivalent to) the 2016-era codebase (1.0.0).
Executive ViewAI
lwext4 1.0.0 contains a denial-of-service vulnerability affecting IoT devices, bootloaders, and forensic tools that process EXT4 filesystem images. Publicly available exploit code exists; organizations using affected systems face service disruption risk if exposed to malformed image inputs.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) restrict EXT4 image sources to authenticated/verified channels; (2) implement filesystem input validation to reject malformed headers before processing; (3) isolate affected systems on network segments; (4) monitor application logs for NULL pointer dereference errors or unexpected terminations during directory operations.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB