Skip to main content

barebox EUVDEUVD-2026-29325

| CVE-2026-34962 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-05-11 VulnCheck GHSA-gh28-ww79-7h4v
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Obtain physical access to boot media
  2. Delivery
    Craft ext4 image with direntlen=0 directory entry
  3. Exploit
    Write malicious image to device storage
  4. Install
    Power-cycle or reboot target device
  5. C2
    barebox iterates corrupted directory
  6. Execute
    Infinite loop hangs boot process
  7. Impact
    Device permanently unavailable

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

The attacker must be able to write a malicious ext4 filesystem image to the boot storage medium that barebox will attempt to read - this requires either physical access to the device's storage (SD card slot, JTAG, direct flash access) or a prior compromise of the running operating system with write access to the boot partition. The vulnerable code path is triggered specifically when barebox performs directory iteration on an ext4 volume, meaning the device must be configured to read files from an ext4-formatted partition at boot time. Exploitation is limited by: (1) requirement for physical media access or prior OS compromise, (2) non-default configuration - barebox must be reading from an ext4 filesystem, and (3) the SSVC automatable=no determination, meaning mass-targeted exploitation is not feasible. The impact is limited to availability; no confidentiality or integrity compromise results.

Impact

Real-world risk is constrained by the attack surface. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N/VA:H) indicates local access is required, meaning an attacker must control the storage media presented to the bootloader - typically requiring physical access or prior system compromise to write a malicious image to flash or removable media. EPSS at 0.01% (2nd percentile) reflects this narrow exploitation path. SSVC classifies exploitation as 'none' and automatable as 'no', consistent with the non-trivial precondition of storage media control. The technical impact is rated 'partial' by SSVC despite VA:H in CVSS, likely because denial of service in a bootloader does not exfiltrate data or modify persistent state beyond hanging the device. This is a genuine but operationally limited risk: most relevant in supply chain scenarios, physical-access threat models, or manufacturing pipelines where untrusted media might be inserted into embedded devices. Not a network-reachable, opportunistic threat.

Exploit ScenarioDerived

An attacker with physical access to an embedded device crafts an ext4 filesystem image containing a directory entry where direntlen is set to zero, then writes this image to the device's boot storage (SD card, eMMC, NOR flash). When barebox attempts to resolve a path or list a directory on that partition during the next boot, ext4fs_iterate_dir() enters an infinite loop, and the device's boot process hangs indefinitely, rendering it unresponsive. No public proof-of-concept code has been identified, but the flaw is straightforward to reproduce with standard ext4 filesystem construction tools.

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

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

Alert me

AnalysisAIv1 – Jul 23, 2026

Infinite loop denial-of-service in barebox's ext4 directory parser allows an attacker who can supply a crafted filesystem image to permanently hang the boot process of affected embedded devices. Versions prior to 2026.04.0 are affected via CWE-835 (unreachable loop exit) in ext4fs_iterate_dir() when it encounters a directory entry with a direntlen of zero. No public exploit has been identified and CISA has not added this to KEV; however, the impact of a permanently hung bootloader is a complete availability loss for the affected device.

RemediationAI

Upgrade barebox to v2026.04.0 or later, which is confirmed to include ext4 code hardening against crafted images per the release notes authored by Sascha Hauer (https://github.com/barebox/barebox/releases/tag/v2026.04.0). If upgrading the bootloader is not immediately feasible, a targeted workaround is to configure barebox to boot exclusively from filesystems other than ext4 (e.g., FAT32/vfat), removing the vulnerable code path entirely; the trade-off is a change to the storage layout and partition scheme. Additionally, enabling secure boot or enforcing cryptographic verification of storage media before the bootloader reads directory structures would prevent an attacker from supplying a malicious image, though this requires platform-specific secure boot infrastructure. Physical security controls (tamper-evident seals, locked enclosures) reduce the most likely attack vector for embedded devices in the field.

Affected VersionsENISA

barebox 0 ≤2026.04.0

Affected Packages

euvd barebox 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

barebox is an embedded bootloader (CPE: cpe:2.3:a:barebox:barebox:*:*:*:*:*:*:*:*) analogous to U-Boot, primarily used in embedded Linux systems. The vulnerability resides in fs/ext4/ext4_common.c within the ext4fs_iterate_dir() function, which iterates over ext4 directory entries during path resolution or directory listing at boot time. CWE-835 (Loop with Unreachable Exit Condition) describes the root cause: the loop advances its position pointer by adding direntlen to the current offset, but if direntlen is zero the pointer never advances and the loop runs forever. This is a classic missing input validation flaw on a length field parsed from untrusted external media. The ext4 parsing code is exercised during boot when barebox reads kernels, device trees, or initrd images from ext4 partitions.

Know when Barebox 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:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.2 MEDIUM

Local attack vector because media write access is required; PR:N since no OS privileges needed to craft the image; only high availability impact with no C/I consequences.

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

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 23:22 NVD
6.2 (MEDIUM) 6.9 (MEDIUM)
CVE Published
May 11, 2026 - 21:58 nvd
MEDIUM 6.2

DescriptionCVE.org

barebox version prior to 2026.04.0 contains a denial-of-service vulnerability in ext4 directory parsing in fs/ext4/ext4_common.c where the ext4fs_iterate_dir() function fails to validate that directory entry length values are non-zero. Attackers can supply a malicious ext4 filesystem image with a crafted directory entry containing a direntlen value of 0 to cause an infinite loop during directory listing or path resolution, resulting in the boot process hanging indefinitely.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Low
specialized embedded bootloader used in niche industrial and development boards
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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.0%
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
None
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

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