CVE-2026-138368

lwext4 through 1.0.0 Out-of-Bounds Read via ext4_dir_dx_checksum

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

Analysis

AI-generated

Technical impact

lwext4 up to version 1.0.0 contains an out‑of‑bounds read in the function ext4_dir_dx_checksum() in src/ext4_dir_idx.c because the dx root count is never compared to the size of the on‑heap buffer. When an attacker supplies a crafted ext4 image that sets a large HTree count and enables metadata_cksum, the crc32c calculation can read as much as 512 KiB past the buffer, triggering a crash and a denial of service. The flaw does not expose data directly but disrupts the stability of any application using lwext4, especially embedded systems with limited resources.

Affected Systems

The vendor is gkostka and the affected product is lwext4, specifically version 1.0.0.

Risk and Exploitability

The CVSS score of 6.8 classifies the vulnerability as moderate severity. EPSS data is unavailable and the issue is not listed in CISA KEV, suggesting a lower publicly known exploitation risk at this time. However, the attack requires a maliciously crafted ext4 image, which could be delivered locally or over the network to systems that mount or parse ext4 filesystems with lwext4. Once triggered, the application will abort, causing a denial of service. Due to the lack of a publicly available exploit, the threat is mainly operational, but the moderate CVSS score warrants attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest release of lwext4 that contains the bounds‑check fix.
  • If an upgrade is not possible, limit processing to ext4 images coming from a trusted, authenticated source and validate them before feeding them to lwext4.
  • As a temporary workaround, patch ext4_dir_idx.c to add a bounds check for the dx root count before the checksum calculation, ensuring the count does not exceed the buffer size.

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
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.
Title lwext4 through 1.0.0 Out-of-Bounds Read via ext4_dir_dx_checksum
First Time appeared Gkostka
Gkostka lwext4
Weaknesses CWE-125
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 29, 2026, 1:24 PM
Reserved
Nov 29, 2026, 1:09 PM
Status
Received
Published
Nov 29, 2026, 2:17 PM
Modified
Nov 29, 2026, 2:17 PM