Divide-by-zero in lwext4 ext4_fs_init_inode_table crashes on crafted image
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-369.
Summary
The lwext4 library through 1.0.0 contains a divide-by-zero flaw in ext4_fs_init_inode_table() in src/ext4_fs.c. The function does not reject inode sizes larger than the block size, so a crafted ext4 image with an oversized inode size crashes the application that mounts it with SIGFPE, as described in CWE-369. A remote attacker who can supply such an image can crash the mounting application, and user interaction is required.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for lwext4.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138371
- 2026-11-29 Alias added: GHSA-vj3w-7r4r-gvwp
- 2026-11-30 CISA SSVC decision points changed
References
Patch 3
More gkostka vulnerabilities
- TI-2025-44102 Out-of-bounds write in lwext4 lets crafted images corrupt memory CVSS 4.0MEDIUM 6.9
- TI-2025-43032 An out-of-bounds read in the ext4_ext_binsearch_idx function in src/ext4_extent.c of the… CVSS 3.1MEDIUM 6.5
- TI-2025-43031 A divide-by-zero vulnerability in the ext4_block_set_lb_size function in… CVSS 3.1MEDIUM 5.5
- TI-2026-99527 lwext4 out-of-bounds write in ext4_fs_mark_bitmap_end corrupts heap CVSS 4.0MEDIUM 6.9
- TI-2026-99526 Out-of-bounds write in lwext4 ext4_fs_init_block_bitmap CVSS 4.0MEDIUM 6.9
- TI-2025-44101 Heap buffer overflow in lwext4 inode bitmap initialization CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-138371 · CVE Program
- CVE-2026-138371 · NVD
- FIRST EPSS
- GHSA-vj3w-7r4r-gvwp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences