Skip to main content

lwext4 CVE-2026-138369

| EUVDEUVD-2026-137768 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-29 VulnCheck GHSA-ghv6-fgwq-8h8j
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft ext4 image with out-of-range descriptors
  2. Delivery
    Deliver image to victim host
  3. Exploit
    Application mounts untrusted filesystem
  4. Execution
    ext4_fs_init_block_bitmap writes past heap buffer
  5. Impact
    Memory corruption crashes mounting process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an application that links lwext4 to mount or parse an attacker-controlled ext4 image; the trigger is a crafted on-disk group descriptor whose block bitmap, inode bitmap, or inode table block address is out of range, which lwext4 through 1.0.0 fails to validate before writing into the heap bitmap buffer. Limiting factors: the vector is local (AV:L) and demands passive user/application interaction (UI:P) - the malicious image must reach the host and be mounted - and no authentication is needed (PR:N). There is no remote network trigger and no special product feature toggle beyond the normal mount/parse path. Impact against unpatched builds is memory corruption and a crash of the mounting process (availability); the fix adds validation so bitmap and inode-table locations lie within valid filesystem/group bounds.

Impact

The signals point to a real but non-urgent, availability-centric issue rather than a top-priority emergency. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H) scores 6.9 (Medium) and is dominated by availability impact (VA:H, a crash) with only limited integrity impact (VI:L) and no confidentiality impact (VC:N). Critically, the vector is local (AV:L) and requires passive user interaction (UI:P) - the victim application must mount/parse an attacker-supplied ext4 image - so this is not remotely triggerable on its own. No EPSS score, no CISA KEV listing, and no exploit/PoC reference are present in the input, and the decision label is 'this_month' (not act_now/emergency), all consistent with moderate, non-widespread urgency. There is no conflict between the signals: the local vector, user-interaction requirement, and primarily availability impact all agree this is a prioritize-and-patch item rather than a drop-everything flaw. One caveat worth verifying with the vendor: the description frames memory corruption from a heap out-of-bounds write (CWE-787), which can in principle be more than a crash, yet the vector caps integrity at VI:L and leaves confidentiality at N - treat exploitability beyond denial of service as unconfirmed.

Exploit ScenarioDerived

An attacker crafts a malicious ext4 filesystem image whose on-disk group descriptors point the block bitmap, inode bitmap, or inode table at out-of-range block addresses, then delivers it to a victim (for example as a disk image or removable-media filesystem). When an application built on lwext4 mounts the untrusted image, ext4_fs_init_block_bitmap() writes past the heap bitmap buffer, corrupting memory and crashing the mounting process. No public exploit code was identified at time of analysis; only issue-tracker and advisory references are present.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

An out-of-bounds heap write in lwext4 through 1.0.0 lets a crafted ext4 image corrupt the block-bitmap buffer while the library initializes filesystem metadata, crashing the mounting application and potentially altering in-memory bookkeeping. A local, unauthenticated attacker must first get the victim to mount or parse the malicious image; the assessed impact is availability-high with low integrity impact and no confidentiality impact (CVSS 6.9). No public exploit identified at time of analysis, and the provided priority signals make this a this-month, availability-centric issue rather than an emergency.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Apply the validation changes in https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908 and https://github.com/Aladdin-R-D/lwext4/commit/2760ed20808fd63b0fde9150157531fe8190c0b7 (PR https://github.com/gkostka/lwext4/pull/111), or use a vendor build that includes them; no exact fixed release version is listed in the available data. Because exploitation requires the attacker-controlled image to reach the mount/parse path, restrict that path to trusted images and run image-parsing code with least privilege as an exposure reduction until the fix is deployed, but these measures do not replace the upstream validation. Refer to the VulnCheck advisory for details: https://www.vulncheck.com/advisories/lwext4-through-1.0.0-out-of-bounds-write-in-ext4-fs-init-block-bitmap.

Affected VersionsENISA

lwext4 0 ≤1.0.0

Affected Packages

euvd lwext4 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

lwext4 is a small C library for ext2/ext3/ext4 filesystem access, identified by CPE cpe:2.3:a:gkostka:lwext4:*:*:*:*:*:*:*:* and affected through release 1.0.0. The flaw is CWE-787 (out-of-bounds write) in ext4_fs_init_block_bitmap() in src/ext4_fs.c: the function trusts the on-disk group descriptor's block bitmap, inode bitmap and inode table block addresses when computing and setting bits in a heap-allocated block bitmap buffer, without confirming that those addresses fall within the filesystem's block count or the group's bitmap range. A crafted ext4 image can therefore make the code set bits beyond the bitmap buffer, producing memory corruption and a crash during mount/parse. The upstream fix introduces ext4_fs_blk_in_bmap() range checks, uses 64-bit arithmetic for the inode-table block count, validates the last group's block count before use, and limits inode-table marking to the portion covered by the bitmap.

Know when Lwext4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Local because a crafted image must be supplied and mounted (AV:L, UI:R); no privileges needed (PR:N); impact is a crash (A:H) with only limited heap-corruption integrity effect (I:L) and no confidentiality.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 87% exploitable
Prevalence
Low
niche embedded ext4 filesystem library, limited production footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy