CVE-2026-138371

lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table

Published Nov 29, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

lwext4 up to version 1.0.0 contains a divide‑by‑zero flaw in the function that initializes the inode table for an ext4 file system. The vulnerability arises because the superblock check routine does not reject inode sizes that exceed the block size, allowing a crafted image to trigger a floating‑point exception (SIGFPE) and crash the mounting application. The impact is a denial of service, as the crash can bring down an application or system that mounts the image, without affecting data integrity or confidentiality.

Affected Systems

The affected product is lwext4 from vendor gkostka, with all releases up to and including version 1.0.0. No other vendors or versions are reported as vulnerable.

Risk and Exploitability

The CVSS base score of 6.8 indicates moderate severity. EPSS information is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting that wide‑scale exploitation has not been observed yet. The likely attack vector is local: an attacker can supply a malicious ext4 image containing an oversized inode_size and trigger the fault when a trusted application attempts to mount it. Due to the lack of remote input beyond the image itself, a pre‑existing attack chain would require the attacker to control or influence the mounting operation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade lwext4 to a patched release that eliminates the divide‑by‑zero condition (for example, any version newer than 1.0.0 that incorporates the commit referenced in the advisory).
  • If an immediate upgrade is not feasible, implement a pre‑mount validation step that checks that the inode_size in the superblock does not exceed the block size; reject any image that fails this test. This remediation directly addresses the input validation weakness identified as CWE‑369.
  • Restrict creation and mounting of ext4 images to trusted users and enforce policy that only authorized personnel can supply images to the mounting application. This limits the attack surface and ensures that untrusted image files cannot trigger the vulnerability.

Generated by OpenCVE AI on November 29, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title lwext4 through 1.0.0 Divide-by-Zero via ext4_fs_init_inode_table
First Time appeared Gkostka
Gkostka lwext4
Weaknesses CWE-369
CPEs cpe:2.3:a:gkostka:lwext4:*:*:*:*:*:*:*:*
Vendors & Products Gkostka
Gkostka lwext4
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 30, 2026, 2:29 PM
Reserved
Nov 29, 2026, 1:09 PM
Status
Received
Published
Nov 29, 2026, 2:17 PM
Modified
Nov 30, 2026, 3:17 PM