Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › gkostka

Medium 6.9 4 CVEs Analysis

lwext4 Batch Flags Four Medium-Severity Crash Flaws Triggered by Crafted ext4 Images

NVD published four vulnerabilities in lwext4 through 1.0.0, all involving malformed ext4 disk images that can crash the mounting application. Each is rated MEDIUM, with CVSS scores of 6.8 or 6.9, and the records describe no known exploitation or fixed version.

What to look into

  • 4 vulnerabilities in gkostka lwext4: 4 medium (CVSS up to 6.9).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-138369 (6.9 medium): lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsinitblockbitmap() in src/ext4fs.c that fails to validate on-disk group descriptor block locations. Attackers can supply a c… An attacker without an account can exploit this with local access if a user views or visits something.
  • 0 of 4 can be attacked over the network without logging in.
  • Kinds of flaws: Out-of-bounds Write (×2); Divide By Zero; Out-of-bounds Read.
Vulnerabilities

Key points

  • Four MEDIUM-rated flaws (CVSS 6.8 to 6.9) in lwext4 through 1.0.0, all triggered by crafted ext4 images.
  • CVE-2026-138369 and CVE-2026-138370 are out-of-bounds writes in bitmap initialization and marking code; CVE-2026-138370 reportedly writes hundreds of MiB past the buffer.
  • CVE-2026-138368 is an out-of-bounds read of about 512 KiB when metadatacsum is enabled and the HTree count is large.
  • CVE-2026-138371 is a divide-by-zero from oversized inode sizes, crashing the application with SIGFPE.
  • The sources report crashes; they do not mention known exploitation or a fixed version.

What the batch covers

NVD published four vulnerabilities in lwext4, a library that handles the ext4 file system, affecting version 1.0.0 and earlier. All four are rated MEDIUM, with CVSS scores of 6.8 or 6.9. They share a common pattern: an attacker supplies a crafted ext4 image, and the code in src/ext4fs.c or src/ext4diridx.c fails to check values read from disk before using them. In each case the records say the result is a crash of the mounting application.

Memory corruption flaws

Three of the four are memory-safety bugs. CVE-2026-138369 is an out-of-bounds write in ext4fsinitblockbitmap(). Out-of-range block bitmap, inode bitmap, or inode table addresses in group descriptors are not validated, so writes can run past the heap bitmap buffer. CVE-2026-138370 is an out-of-bounds write in ext4fsmarkbitmapend(). According to the record, superblock values that push groupblocks above INTMAX make startbit negative, leading to writes reportedly hundreds of MiB past the bitmap buffer. CVE-2026-138368 is an out-of-bounds read in ext4dirdxchecksum(), where the dx root count field is not checked against its limit. With metadatacsum enabled and a large HTree count, the crc32c calculation reads about 512 KiB beyond the heap buffer.

Divide-by-zero flaw

CVE-2026-138371 is a divide-by-zero in ext4fsinitinodetable(). The source says ext4sbcheck() does not reject inode sizes larger than the block size. An oversized inodesize combined with uninitialized inode table flags raises SIGFPE, which crashes the mounting application.

Severity and exposure

No single record in this batch is rated higher than the others, so the most serious items are the two out-of-bounds writes, which can corrupt heap memory, and the out-of-bounds read. The sources do not describe any exploitation in the wild, and they do not name a patched version or a workaround. Whether these flaws allow anything beyond a crash is not stated; the records only describe memory corruption and termination.

Scope

The risk applies wherever lwext4 mounts or parses ext4 images that come from untrusted sources. The records do not describe other products or configurations.

What to do

  1. Treat ext4 images from untrusted sources as hostile and avoid mounting them with lwext4 until a fix is available.
  2. Check the upstream lwext4 project for a patched release; the records do not name a fixed version.
  3. Monitor the advisories for updates, since the records give no workaround or detection guidance.

Our article about all 4 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 4 vulnerabilities

  • CVE-2026-138369 6.9 lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsinitblockbitmap() in src/ext4fs.c that fails to validate on-disk group descriptor block locations. Attackers can supply a crafted ext4 image with out-of-range bloc…
  • CVE-2026-138370 6.9 lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsmarkbitmapend() in src/ext4fs.c that allows attackers to corrupt heap memory via a crafted ext4 image. Attackers can supply superblock fields yielding groupblocks…
  • CVE-2026-138371 6.8 lwext4 through 1.0.0 contains a divide-by-zero vulnerability in ext4fsinitinodetable() in src/ext4fs.c because ext4sbcheck() does not reject inode sizes larger than the block size. Attackers can supply a crafted ext4 image with an oversize…
  • CVE-2026-138368 6.8 lwext4 through 1.0.0 contains an out-of-bounds read vulnerability in ext4dirdxchecksum() in src/ext4diridx.c because the dx root count field is never validated against limit. Attackers can supply a crafted ext4 image with metadatacsum and…

Frequently asked questions

How many gkostka lwext4 vulnerabilities were published on November 29, 2026?

4 vulnerabilities: 4 medium, with CVSS scores up to 6.9.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-138369 (CVSS 6.9): lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsinitblockbitmap() in src/ext4fs.c that fails to validate on-disk group descriptor block locations. Attackers can supply a c…

Original records