CVE-2026-138369

lwext4 through 1.0.0 Out-of-Bounds Write in ext4_fs_init_block_bitmap

Published Nov 29, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4_fs_init_block_bitmap() in src/ext4_fs.c that fails to validate on-disk group descriptor block locations. Attackers can supply a crafted ext4 image with out-of-range block bitmap, inode bitmap, or inode table addresses to write past the heap bitmap buffer, corrupting memory and crashing the mounting application.

Analysis

AI-generated

Technical impact

lwext4, a lightweight ext4 filesystem implementation, contains a bug in ext4_fs_init_block_bitmap that fails to validate on-disk group descriptor block locations. The flaw allows an attacker to provide a crafted ext4 image with outside‑range block bitmap, inode bitmap, or inode table addresses, resulting in an out‑of‑bounds write past the heap bitmap buffer. This corrupts heap memory and can cause the mounting program to crash or, if the corrupted data alter control flow, lead to arbitrary code execution. The weakness corresponds to CWE‑787, Unchecked Write of Arbitrary Memory Location.

Affected Systems

Affected products are lwext4 from gkostka, version 1.0.0 and earlier. Any system that mounts ext4 images using this library or its derivatives is at risk. The CPE string indicates the product namespace but concrete version data points to the 1.0.0 release.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. The EPSS score is not available, so the current likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Attackers must supply a malicious ext4 image and trigger a mount operation, so the attack vector is local or requires attacker control over the image presented to a target system. Successful exploitation could lead to denial of service or code execution depending on how the memory corruption is leveraged. Administrators should monitor for untrusted filesystem images and limit privileges for mounting operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest lwext4 release that addresses the out‑of‑bounds write, or apply a patch that adds bounds checking to ext4_fs_init_block_bitmap.
  • Restrict mounting of ext4 filesystems to trusted images only, using integrity verification before mounting.
  • Mount filesystems with read‑only permissions when possible to reduce write surface area.
  • Apply general filesystem security measures, such as disabling insecure mount options and ensuring kernel and user‑space frameworks enforce bounds checks for bitmap handling.

Generated by OpenCVE AI on November 29, 2026 at 14:21 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 write vulnerability in ext4_fs_init_block_bitmap() in src/ext4_fs.c that fails to validate on-disk group descriptor block locations. Attackers can supply a crafted ext4 image with out-of-range block bitmap, inode bitmap, or inode table addresses to write past the heap bitmap buffer, corrupting memory and crashing the mounting application.
Title lwext4 through 1.0.0 Out-of-Bounds Write in ext4_fs_init_block_bitmap
First Time appeared Gkostka
Gkostka lwext4
Weaknesses CWE-787
CPEs cpe:2.3:a:gkostka:lwext4:*:*:*:*:*:*:*:*
Vendors & Products Gkostka
Gkostka lwext4
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

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