Home › CVE › Vulnerabilities
CVE-2026-138368 — gkostka lwext4
One of 4 gkostka lwext4 vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.8
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| gkostka lwext4 | ≤ 1.0.0 | — |
References by type
Patches and fixed releases
Other references
Affected
- gkostka lwext4
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-138368?
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 a large HTree count, making crc32c read about 512 KiB past the heap buffer and crash the application. Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2026-138368?
CVE-2026-138368 has a CVSS 4.0 base score of 6.8 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2026-138368 being exploited?
Not as far as is known: CVE-2026-138368 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.
Which versions are affected by CVE-2026-138368?
gkostka lwext4 ≤ 1.0.0.
How do I fix CVE-2026-138368?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.