lwext4 Heap Buffer Overflow Vulnerabilities
2026-11-20
Mounting a crafted ext4 image with lwext4 1.0.0 or earlier can drive a heap out-of-bounds write in ext4_fs_init_block_bitmap(), corrupting memory past the block bitmap buffer and crashing the host application (assessed availability impact High, integrity Low, no confidentiality exposure). The trigger is a superblock geometry that passes an oversized s_reserved_gdt_blocks value alongside BLOCK_UNINIT block groups, so the computed bitmap size exceeds the fixed block_size buffer; exploitation requires the target application to actually mount the attacker-supplied image (UI:P / assessed UI:R), which makes locally or removable-media-supplied images the primary exposure. Severity is moderate (CVSS 4.0 6.9; assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R with A:H), no CISA KEV listing and no public exploit identified at time of analysis, and the priority label is this_month; upstream fix commits are referenced in the advisory.
Heap-based memory corruption in lwext4 through 1.0.0 is triggered when the library mounts a crafted ext4 image whose superblock declares an s_inodes_per_group value larger than the inode bitmap block can represent, causing the memset in ext4_fs_init_inode_bitmap() (src/ext4_fs.c) to write past a heap buffer sized to block_size. Exploitation is local and requires passive interaction - a user or application must mount the attacker-supplied image (AV:L, UI:P, PR:N) - and the assessed impact is availability-dominant, crashing the mounting application through heap corruption, with only limited integrity impact and no confidentiality impact; there is no remote network trigger. No public exploit code was identified at time of analysis and the issue is not in CISA KEV, but upstream fix code has been merged (PR #111).