lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table
- State
- Published
- Severity
- 6.8 Medium
- Published
- Nov 29, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 29, 2026
Description
lwext4 through 1.0.0 contains a divide-by-zero vulnerability in ext4_fs_init_inode_table() in src/ext4_fs.c because ext4_sb_check() does not reject inode sizes larger than the block size. Attackers can supply a crafted ext4 image with an oversized inode_size and uninitialized inode table flags, raising SIGFPE and crashing the mounting application.
| Product | Versions |
|---|---|
| lwext4 gkostka | 1.0.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.8 Medium | VulnCheck | |
| 3.1 | 5.5 Medium | VulnCheck |
Weaknesses
- CWE-369 Divide By Zero
References
- https://github.com/gkostka/lwext4/issues/174Issue Tracker
- https://github.com/gkostka/lwext4/pull/111PatchIssue Tracker
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908Patch
- https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1Patch
- https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L429-L441Technical Details
- VulnCheck Advisory: lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_tableThird-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.