CVE-2025-70099: lwext4 NULL pointer defence in ext4_dir_en_get_name_len
A NULL pointer dereference in the ext4direngetnamelen function in include/ext4dir.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 namelen field, resulting in a segmentation fault. This affects versions based on (or equivalent to) the 2016-era codebase (1.0.0).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lwext4to a version that resolves this vulnerability.Fixed in 1.0.0Patch CVE-2025-70099 - Compensating control
Apply the lwext4 NULL pointer defence for ext4_dir_en_get_name_len (CVE-2025-70099) to prevent segmentation faults during directory iteration when processing malformed directory entries from crafted EXT4 filesystem images.
Event History
Frequently Asked Questions
What conditions are required to trigger the denial of service?
An attacker needs to supply a specially crafted EXT4 filesystem image containing malformed directory entries. The fault is triggered during directory iteration when the code accesses the directory entry name_len field without validating the entry pointer.
Is authentication or user interaction required for exploitation?
No. The CVSS vector identifies the issue as network-accessible with low attack complexity, no privileges required, and no user interaction required.
What is the impact if exploitation succeeds?
Successful exploitation can cause a segmentation fault, resulting in denial of service. The provided CVSS vector indicates no confidentiality or integrity impact, with high availability impact.
Which versions are identified as affected?
The affected code is identified as lwext4 1.0.0 and versions based on, or equivalent to, its 2016-era codebase.