CVE-2026-138370
Received Received - Intake

Out-of-Bounds Write in lwext4 Filesystem Library

Vulnerability report for CVE-2026-138370, 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 an out-of-bounds write vulnerability in ext4_fs_mark_bitmap_end() in src/ext4_fs.c that allows attackers to corrupt heap memory via a crafted ext4 image. Attackers can supply superblock fields yielding group_blocks above INT_MAX, making start_bit negative and writing hundreds of MiB past the bitmap buffer, 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-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is an out-of-bounds write vulnerability in the lwext4 library through version 1.0.0. It occurs in the ext4_fs_mark_bitmap_end() function when processing crafted ext4 images. Attackers manipulate superblock fields to set group_blocks above INT_MAX, causing start_bit to become negative. This leads to writing hundreds of MiB past the bitmap buffer, corrupting heap memory and potentially crashing the mounting application.

Detection Guidance

To detect this vulnerability, inspect lwext4 versions prior to 1.0.2. Check for crashes when mounting ext4 images using AddressSanitizer (ASan) or similar tools. Monitor for heap corruption errors during filesystem operations.

Impact Analysis

If you use lwext4 through 1.0.0 to mount or access ext4 images, an attacker could provide a malicious image to corrupt system memory. This may cause the application to crash or execute arbitrary code, depending on the system's memory layout. The impact depends on the privileges of the mounting process.

Mitigation Strategies

Update lwext4 to version 1.0.2 or later. Avoid mounting untrusted ext4 images. Implement input validation for superblock fields to prevent group_blocks from exceeding INT_MAX.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138370. 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...