# CVE-2026-138371: lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-29T13:24:25.226Z
- Modified: 2026-11-30T15:17:25.300Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gkostka lwext4: up to 1.0.0

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/gkostka/lwext4/issues/174> (issue-tracking)
- <https://github.com/gkostka/lwext4/pull/111> (issue-tracking, patch)
- <https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908> (patch)
- <https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1> (patch)
- <https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L429-L441> (technical-description)
- <https://www.vulncheck.com/advisories/lwext4-through-1.0.0-divide-by-zero-via-ext4-fs-init-inode-table> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-138371](https://www.cve.org/CVERecord?id=CVE-2026-138371), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138371](https://nvd.nist.gov/vuln/detail/CVE-2026-138371), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138371 · Whole record: https://cve.day/CVE-2026-138371.json · Rebuilt by cve.day 2026-11-30T15:32:25.817Z
