Skip to main content

lwext4 CVE-2026-138371

| EUVDEUVD-2026-137770 MEDIUM
Divide By Zero (CWE-369)
2026-11-29 VulnCheck GHSA-vj3w-7r4r-gvwp
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted ext4 image to target
  2. Exploit
    Application mounts and parses oversized inode_size
  3. Execution
    Divide-by-zero raises SIGFPE
  4. Impact
    Mounting process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
Exploitation Conditions

Exploitation requires the attacker to supply a crafted ext4 filesystem image in which the superblock declares an inode_size larger than the block size (and not a power of two) with uninitialized inode-table flags, and then have a victim application mount or parse that image using lwext4 - the code path runs through ext4_fs_init_inode_table() via an inadequate ext4_sb_check(). Limiting factors: this is a local vector (AV:L) requiring the attacker to deliver the image to the target, and it requires user/application interaction (UI:P) to mount it; it does not grant code execution or data access (VC:N/VI:N), only a crash. Default behavior of applications that validate images before mounting, or that have adopted the fixed ext4_sb_check(), will reject the oversized inode_size.

Impact

This is a denial-of-service-only flaw (CWE-369 divide-by-zero) with modest real-world risk. The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) and score of 6.8 are internally consistent with the description: no confidentiality or integrity impact, availability-only, and local vector gated by passive user interaction (an application mounting an attacker-supplied image). There is no CISA KEV listing and no EPSS score was supplied, and no exploit flag is set, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (routine patch priority), not act_now or emergency. The crash condition is publicly documented (VulnCheck advisory, GitHub issue #174, and a source-line reference), and a vendor fix exists, but nothing in the input confirms weaponized exploit code. SSVC-style reading: technical impact is partial (crash of the mounting process, not code execution), exploitation is not observed, and automatability is limited because the attacker must get a crafted image mounted locally. Net: a legitimate but low-to-moderate priority issue - the high VA:H sub-score reflects a reliable crash, not a high-severity system compromise.

Exploit ScenarioDerived

An attacker crafts a malformed ext4 filesystem image whose superblock declares an inode_size larger than the block size and leaves inode-table flags uninitialized, then gets a victim application or service to mount or parse it (e.g., an auto-mounter, forensic tool, firmware updater, or embedded storage handler using lwext4). During ext4_fs_init_inode_table() the oversized value drives a divide-by-zero, raising SIGFPE and crashing the mounting process. The trigger mechanism is publicly described in the VulnCheck advisory and issue #174, but no verified working exploit code is confirmed in the provided data.

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

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

Alert me

AnalysisAIv1 – Nov 29, 2026

lwext4 through version 1.0.0 performs an unchecked division during inode-table initialization when mounting an ext4 image, so a crafted superblock with an inode_size larger than the block size raises SIGFPE and terminates the mounting application. The flaw is a missing validation in ext4_sb_check(), which accepts malformed inode_size and log_block_size values before ext4_fs_init_inode_table() in src/ext4_fs.c uses them in a division. Exploitation is local and requires the victim to mount or parse an attacker-supplied image (per the assessed vector, AV:L/AC:L/PR:N/UI:R, availability-only impact); the result is a crash, not code execution or data exposure, and no public exploit or CISA KEV listing was identified at time of analysis. Upstream fixes are available as commits, and no released patched version was independently confirmed.

RemediationAI

Apply the upstream fixes: commit https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908 in gkostka/lwext4, mirrored as https://github.com/Aladdin-R-D/lwext4/commit/b32c54983898bd8bb97abacf0e8f9473d6cd48c1 (patch references also include PR https://github.com/gkostka/lwext4/pull/111). These changes make ext4_sb_check() reject a log_block_size that produces a block size outside 1 KiB-64 KiB, an inode_size that is not a power of two, and an inode_size larger than the block size, so malformed images fail to mount with an error instead of trapping. No tagged patched release version was confirmed in the available data, so vendors embedding lwext4 should backport the ext4_super.c change rather than assume a fixed release artifact exists. Where patching is not yet possible, the actionable compensating controls are: pre-validate every untrusted ext4 image on a separate, non-critical host with e2fsprogs before letting the lwext4-based application open it, rejecting images whose inode size exceeds the block size (trade-off: extra tooling and a latency step in the image pipeline, and e2fsprogs is stricter than lwext4 so some images it accepts may still differ in behavior); run the mounting/parsing component in a separate, restartable process or sandbox so a SIGFPE terminates only that worker rather than the whole service (trade-off: process isolation overhead, and the crash still has to be handled as a controlled restart); and restrict which principals or channels can hand images to the parsing component, since the assessed vector is local with user interaction (trade-off: reduced flexibility in update and ingestion workflows). Applications that already validate images before mounting will reject the oversized inode_size and are unaffected.

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

ext4 stores geometry in the superblock: s_log_block_size is a shift used to derive the block size, and s_inode_size is a 16-bit field giving the size of each inode. lwext4's ext4_sb_check() previously validated neither relationship, so an image could declare an inode_size that is not a power of two and/or exceeds the block size. Downstream, ext4_fs_init_inode_table() in src/ext4_fs.c (lines around 429-441 of the v1.0.0 tree) divides by that inode size while deriving the inode-table layout; a zero or malformed divisor surfaces as a hardware divide-by-zero trap (SIGFPE) that kills the process. The root cause class is CWE-369 (Divide by Zero), i.e. missing input validation on untrusted on-disk metadata rather than a memory-safety defect. The upstream fix hardens ext4_sb_check() by rejecting a log_block_size that yields a block size outside 1 KiB-64 KiB, requiring inode_size to be a power of two, and requiring inode_size to be no larger than the block size. Related upstream work (Aladdin-R-D commit b32c5498) also hardens extent-path handling in src/ext4_extent.c, returning EIO instead of succeeding with a freed path. Because lwext4 is an embeddable library, its exposure depends entirely on the host application: firmware updaters, bootloaders, forensics tools and any service that opens untrusted ext4 images. The trigger conditions beyond the malformed superblock fields (for example any additional uninitialized inode-table flag combinations) are only partially described in the available sources.

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.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Attacker supplies a local crafted image that an application must mount (AV:L, UI:R), no authentication needed (PR:N), and the only impact is a reliable process crash (A:H; C:N/I:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/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
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

lwext4 through 1.0.0 contains a divide-by-zero vulnerability in ext4_fs_init_inode_table() in src/ext4_fs.c because ext4_sb_check() does not reject inode sizes larger than the block size. Attackers can supply a crafted ext4 image with an oversized inode_size and uninitialized inode table flags, raising SIGFPE and crashing the mounting application.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche embedded ext2/3/4 library, not a mainstream enterprise deployment
Social Media
1
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.2%
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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