Skip to main content

lwext4 EUVDEUVD-2025-211371

| CVE-2025-71474 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-20 VulnCheck GHSA-jwv4-r7cf-27f5
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 oversized s_reserved_gdt_blocks and BLOCK_UNINIT groups
  2. Delivery
    Deliver image to target application
  3. Exploit
    Application mounts crafted filesystem
  4. Execution
    ext4_fs_init_block_bitmap writes past bitmap buffer
  5. Impact
    Heap corruption crashes application

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 built on lwext4 (≤1.0.0) to mount an attacker-controlled ext4 filesystem image. The specific trigger is a crafted superblock geometry: an oversized s_reserved_gdt_blocks value together with BLOCK_UNINIT block groups, which causes the computed bitmap size to exceed the fixed block_size buffer during ext4_fs_init_block_bitmap(). Limiting factors: the attack is local (AV:L) - the attacker must get the malicious image to the target and the target must actually mount it (UI:P passive interaction); there is no remote network trigger and no confidentiality exposure. Realistic exposure is therefore highest on devices or services that automatically mount externally supplied or removable ext4 media.

Impact

This is a moderate-severity, availability-focused memory-corruption flaw whose real-world risk is constrained by its attack vector. 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 and tells a consistent story: exploitation is local, requires no authentication, but needs passive user interaction (the victim or an application must mount an attacker-supplied ext4 image), and the dominant impact is availability (VA:H, application crash) with only limited integrity impact (VI:L, heap corruption) and no confidentiality loss (VC:N). No EPSS score, no CISA KEV listing, and no SSVC exploitation/automatable signals were supplied, so there is no evidence of active or widespread exploitation; the vuln.today decision label is 'this_month', indicating routine prioritization rather than emergency action. The signals do not conflict - a local, UI-dependent crash bug in a niche filesystem library with no exploitation telemetry is best treated as a prompt-but-not-urgent patch item. Note that VI:L reflects heap corruption; whether this out-of-bounds write is controllably exploitable beyond a crash is not established by the available sources.

Exploit ScenarioDerived

An attacker crafts a malicious ext4 filesystem image whose superblock advertises an oversized s_reserved_gdt_blocks value combined with BLOCK_UNINIT groups, then induces a victim application or service to mount it (e.g., an auto-mounting embedded device, forensic tool, or container runtime using lwext4). When ext4_fs_init_block_bitmap() initializes the block bitmap, it writes past the end of the fixed-size bitmap buffer, corrupting heap memory and crashing the process. No public exploit was identified at time of analysis; exploitation is local and depends on the target mounting the hostile image (UI:P).

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

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

Alert me

AnalysisAIv1 – Nov 20, 2026

Mounting a crafted ext4 image with lwext4 1.0.0 or earlier can drive a heap out-of-bounds write in ext4_fs_init_block_bitmap(), corrupting memory past the block bitmap buffer and crashing the host application (assessed availability impact High, integrity Low, no confidentiality exposure). The trigger is a superblock geometry that passes an oversized s_reserved_gdt_blocks value alongside BLOCK_UNINIT block groups, so the computed bitmap size exceeds the fixed block_size buffer; exploitation requires the target application to actually mount the attacker-supplied image (UI:P / assessed UI:R), which makes locally or removable-media-supplied images the primary exposure. Severity is moderate (CVSS 4.0 6.9; assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R with A:H), no CISA KEV listing and no public exploit identified at time of analysis, and the priority label is this_month; upstream fix commits are referenced in the advisory.

RemediationAI

Vendor patch data indicates a fix is available; the concrete changes are upstream commit github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908 and downstream commit github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33, which add an ENXIO return in ext4_fs_init_block_bitmap() when (bit_max >> 3) > block_size and an EFAULT return in ext4_fs_init_inode_bitmap() when ((inodes_per_group + 7) / 8) > block_size - note that no tagged fixed release version is confirmed in the available data, so verify your vendored lwext4 revision carries these checks (or backport them) and rebuild. Where patching must be delayed, the actionable compensating controls are: validate untrusted ext4 images before mounting (reject images whose s_reserved_gdt_blocks and BLOCK_UNINIT group descriptors imply a bitmap larger than the filesystem block size), with the trade-off that such pre-screening is only as good as the validator and may reject unusual but legitimate large-metadata filesystems; perform any mounting of externally supplied or removable media inside a sandboxed or low-privilege process so an out-of-bounds write only terminates that process, at the cost of extra process isolation and IPC plumbing; and disable automatic mounting of removable or downloaded ext4 images, which removes the UI:P passive interaction the attack depends on but changes user workflow. Updating is the complete fix - the size checks are the only place the geometry is constrained.

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 standalone C library that implements ext2/ext3/ext4 reading and writing for embedded and cross-platform targets, meaning the vulnerable parser is compiled into any firmware, bootloader or service that embeds it rather than into a kernel that already validates images. The flaw is CWE-787 (out-of-bounds write) inside ext4_fs_init_block_bitmap() (src/ext4_fs.c, lines ~322-334 in v1.0.0), which initializes a block bitmap for a freshly referenced block group: it derives the number of bitmap bits from superblock and group-descriptor geometry (notably s_reserved_gdt_blocks combined with groups flagged BLOCK_UNINIT) and then writes into the bitmap buffer obtained from ext4_bitmap.h (lines ~53-56), whose size is fixed at the filesystem block size. When the computed bit count exceeds block_size*8 bits, the write runs past the allocation into adjacent heap memory; the companion path ext4_fs_init_inode_bitmap() has the analogous size assumption for inodes_per_group. The upstream fix adds explicit bounds checks that return ENXIO when (bit_max >> 3) > block_size and EFAULT when ((inodes_per_group + 7) / 8) > block_size, effectively rejecting geometry that legitimately requires larger blocks. Because the scheduler and descriptor fields come entirely from the on-disk image, an attacker fully controls the arithmetic; no network-facing protocol is involved and the trigger is confirmed to be the mount-time bitmap initialization path rather than ordinary file I/O.

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 image must be mounted, so AV:L and UI:R; no auth needed (PR:N); impact is a crash (A:H) with limited heap corruption (I:L) and no data disclosure (C:N).

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() that allows attackers to corrupt heap memory via crafted superblock geometry fields. Attackers can supply an ext4 image with oversized s_reserved_gdt_blocks and BLOCK_UNINIT groups to write past the bitmap buffer, crashing applications that mount it.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche embedded/IoT ext4 library, no broad enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.1%
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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.

Related Vulnerabilities in lwext4 Heap Buffer Overflow Vulnerabilities

View all 2

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