CVE-2025-71473
lwext4 through 1.0.0 Heap Buffer Overflow via ext4_fs_init_inode_bitmap
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 20, 2026
- Updated
- Nov 20, 2026
- Reserved
- Nov 20, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.1 Medium | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
Affected Products
| Product | Versions |
|---|---|
lwext4gkostka |
|
References
- GitHub Issue #93issue-tracking
- https://github.com/gkostka/lwext4/pull/111issue-trackingpatch
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908patch
- https://github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33patch
- https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L401-L405technical-description
- https://github.com/gkostka/lwext4product
- VulnCheck Advisory: lwext4 through 1.0.0 Heap Buffer Overflow via ext4_fs_init_inode_bitmapthird-party-advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.