medium6.9
CVE-2025-71473
lwext4 through 1.0.0 contains a heap buffer overflow in ext4_fs_init_inode_bitmap() in src/ext4_fs.c because it does not validate s_inodes_per_group against th…
Impact
lwext4 through 1.0.0 contains a heap buffer overflow in ext4_fs_init_inode_bitmap() in src/ext4_fs.c because it does not validate s_inodes_per_group against the inode bitmap size. Attackers can supply a crafted ext4 image with an oversized s_inodes_per_group so memset writes past the heap buffer, corrupting memory and crashing the mounting application.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: low risk of data or systems being changed, high risk of outages.
Affected products · Gkostka
| Product | Affected versions |
|---|---|
| Lwext4 | through 1.0.0 Version 0 ≤1.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/gkostka/lwext4/issues/93
- https://github.com/gkostka/lwext4/pull/111
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908
- https://github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33
- https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L401-L405
- https://github.com/gkostka/lwext4
- https://www.vulncheck.com/advisories/lwext4-through-1.0.0-heap-buffer-overflow-via-ext4-fs-init-inode-bitmap
- https://github.com/advisories/GHSA-q7cc-h884-47h4
- https://nvd.nist.gov/vuln/detail/CVE-2025-71473