CVE-2025-71474: lwext4 through 1.0.0 Out-of-Bounds Write via ext4_fs_init_block_bitmap
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsinitblockbitmap() that allows attackers to corrupt heap memory via crafted superblock geometry fields. Attackers can supply an ext4 image with oversized sreservedgdtblocks and BLOCKUNINIT groups to write past the bitmap buffer, crashing applications that mount it.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using lwext4 through version 1.0.0 are exposed when they mount an attacker-supplied ext4 image. The reported impact is a heap-memory corruption condition that can crash the mounting application.
What does an attacker need to exploit it?
An attacker needs to provide a crafted ext4 image containing oversized s_reserved_gdt_blocks superblock geometry fields and BLOCK_UNINIT groups. Exploitation requires user interaction to mount that image, but requires no attacker privileges.
Is an application affected merely by including lwext4?
The vulnerable path is triggered when the application mounts a crafted ext4 image. The provided information does not indicate that normal mounting of trusted images triggers the issue.
What can be done if an update cannot be applied immediately?
Do not mount untrusted ext4 images with affected applications. Restrict image sources to trusted inputs until the available upstream fix can be applied.