CVE-2026-138371
published medium CVSS 4.0 · 6.8lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gkostka | — | lwext40 through 1.0.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gkostka | lwext4 | 0 through 1.0.0 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-369 Divide By Zero
References
6- https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1
- https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L429-L441
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908
- https://github.com/gkostka/lwext4/issues/174
- https://github.com/gkostka/lwext4/pull/111
- VulnCheck Advisory: lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table https://www.vulncheck.com/advisories/lwext4-through-1.0.0-divide-by-zero-via-ext4-fs-init-inode-table
Provider assertions
2VulnCheck · cna
lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fcf1b457b435f6ee27b598feb8e64b593868dc709c3b78ac036643089f97da09
- Ingested
- 30 Nov 2026, 14:37:00 UTC
- Source record
- Official CVE record