CVE-2026-138371
Received Received - Intake

Divide-by-Zero in lwext4 Filesystem Library

Vulnerability report for CVE-2026-138371, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-29

Last updated on: 2026-11-29

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-29
Last Modified
2026-11-29
Generated
2026-11-29
AI Q&A
2026-11-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gkostka lwext4 From 0 (inc) to 1.0.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-369 The product divides a value by zero.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a divide-by-zero flaw in the lwext4 library through version 1.0.0. It occurs in the ext4_fs_init_inode_table() function when processing a crafted ext4 image. The issue arises because the code calculates inodes_per_block as block_size divided by inode_size without validating that inode_size does not exceed block_size. When an attacker sets inode_size larger than block_size, inodes_per_block becomes zero, causing a division by zero error that crashes the mounting application with a SIGFPE signal.

Detection Guidance

To detect this vulnerability, inspect lwext4 versions up to 1.0.0. Check for crafted ext4 images with oversized inode_size. Use tools like fsck or debugfs to analyze filesystem metadata for invalid inode_size values exceeding block_size.

Impact Analysis

This vulnerability can cause denial-of-service conditions by crashing applications that mount malicious ext4 images. Attackers can exploit it by providing specially crafted filesystems, leading to application termination via SIGFPE. Systems using vulnerable versions of lwext4 to mount untrusted ext4 images are at risk of unexpected crashes.

Mitigation Strategies

Upgrade lwext4 to version 1.0.2 or later. Ensure ext4_sb_check() validates inode_size does not exceed block_size. Avoid mounting untrusted ext4 images until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138371. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...