CVE-2026-138368: lwext4 through 1.0.0 Out-of-Bounds Read via ext4_dir_dx_checksum
lwext4 through 1.0.0 contains an out-of-bounds read vulnerability in ext4dirdxchecksum() in src/ext4diridx.c because the dx root count field is never validated against limit. Attackers can supply a crafted ext4 image with metadatacsum and a large HTree count, making crc32c read about 512 KiB past the heap buffer and crash the application.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications using lwext4 through 1.0.0 that open or process attacker-supplied ext4 filesystem images are exposed. The vulnerable path involves directory indexing checksum handling for images using metadata_csum.
What does an attacker need to trigger the flaw?
An attacker needs to provide a crafted ext4 image with metadata_csum enabled and an HTree root containing an excessively large count field. Exploitation requires local access and user interaction, such as causing an application to process the image.
What is the likely impact?
The crafted count causes crc32c to read roughly 512 KiB beyond a heap buffer, which can crash the application. The provided severity vector indicates availability impact only, with no stated confidentiality or integrity impact.