lwext4 out-of-bounds write in ext4_fs_mark_bitmap_end corrupts heap
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The lwext4 library through 1.0.0 contains an out-of-bounds write in ext4_fs_mark_bitmap_end() in src/ext4_fs.c. Crafted superblock fields make group_blocks exceed INT_MAX, which makes start_bit negative and lets the write land hundreds of MiB past the bitmap buffer, corrupting heap memory (CWE-787). An attacker who supplies a crafted ext4 image can trigger it, and the flaw crashes the application that mounts the image.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Description from the CNA
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4_fs_mark_bitmap_end() in src/ext4_fs.c that allows attackers to corrupt heap memory via a crafted ext4 image. Attackers can supply superblock fields yielding group_blocks above INT_MAX, making start_bit negative and writing hundreds of MiB past the bitmap buffer, crashing the mounting application.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for lwext4.
Written with Claude Haiku 5.5 from the sources below · 2026-11-29
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138370
- 2026-11-29 Alias added: GHSA-c7m3-5qc6-h5jq
- 2026-11-30 CISA SSVC decision points changed
References
More gkostka vulnerabilities
- TI-2025-44102 Out-of-bounds write in lwext4 lets crafted images corrupt memory CVSS 4.0MEDIUM 6.9
- TI-2025-43032 An out-of-bounds read in the ext4_ext_binsearch_idx function in src/ext4_extent.c of the… CVSS 3.1MEDIUM 6.5
- TI-2025-43031 A divide-by-zero vulnerability in the ext4_block_set_lb_size function in… CVSS 3.1MEDIUM 5.5
- TI-2026-99526 Out-of-bounds write in lwext4 ext4_fs_init_block_bitmap CVSS 4.0MEDIUM 6.9
- TI-2025-44101 Heap buffer overflow in lwext4 inode bitmap initialization CVSS 4.0MEDIUM 6.9
- TI-2026-99528 Divide-by-zero in lwext4 ext4_fs_init_inode_table crashes on crafted image CVSS 4.0MEDIUM 6.8
Sources
- CVE-2026-138370 · CVE Program
- CVE-2026-138370 · NVD
- FIRST EPSS
- GHSA-c7m3-5qc6-h5jq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences