CVE-2026-138368
Received Received - Intake

Out-of-Bounds Read in lwext4 Due to Unvalidated HTree Count

Vulnerability report for CVE-2026-138368, 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 read vulnerability in ext4_dir_dx_checksum() in src/ext4_dir_idx.c because the dx root count field is never validated against limit. Attackers can supply a crafted ext4 image with metadata_csum and a large HTree count, making crc32c read about 512 KiB past the heap buffer and crash the 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-125 The product reads 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

CVE-2026-138368 is an out-of-bounds read vulnerability in the lwext4 library's ext4_dir_dx_checksum() function. The issue occurs because the dx root count field is never validated against its limit. Attackers can exploit this by providing a crafted ext4 image with metadata_csum enabled and an excessively large HTree count. This causes the crc32c function to read about 512 KiB past the heap buffer, leading to application crashes.

Detection Guidance

To detect this vulnerability, inspect lwext4 library versions. Check if your system uses lwext4 through 1.0.0. Run 'find / -name liblwext4.so*' or 'ldconfig -p | grep lwext4' to locate the library. Verify version with 'strings [library_path] | grep lwext4'. If version <=1.0.0, the system is vulnerable.

Impact Analysis

This vulnerability can cause application crashes by reading memory outside the intended buffer. If exploited, it may expose sensitive data or lead to denial-of-service conditions. Systems using lwext4 through version 1.0.0 are affected, especially those processing crafted ext4 images with metadata_csum enabled.

Mitigation Strategies

Immediately update lwext4 to version 1.0.2 or later. If updating is not possible, disable metadata_csum in ext4 filesystems to prevent exploitation. Avoid processing untrusted ext4 images until patched.

Chat Assistant

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