lwext4 CVE-2025-70099
HIGHSeverity 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
3DescriptionCVE.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).
AnalysisAI
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).
Technical ContextAI
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.
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.
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
Same weakness CWE-476 – NULL Pointer Dereference
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today