Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain physical access to boot media
-
DeliveryCraft ext4 image with direntlen=0 directory entry
-
ExploitWrite malicious image to device storage
-
InstallPower-cycle or reboot target device
-
C2barebox iterates corrupted directory
-
ExecuteInfinite loop hangs boot process
-
ImpactDevice 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
common/password.c in Pengutronix barebox through 2021.07.0 leaks timing information because strncmp is used during hash
crypto/digest.c in Pengutronix barebox through 2021.07.0 leaks timing information because memcmp is used during digest v
Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_req in fs/nfs.c because a length fiel
Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_reply in net/nfs.c because a length f
Pengutronix Barebox through v2020.05.0 has an out-of-bounds read in nfs_read_reply in net/nfs.c because a field of an in
Memory corruption in the barebox bootloader's EFI PE loader (efi/loader/pe.c) affects all versions prior to 2026.04.0, a
A signature bypass vulnerability exists in the barebox bootloader's FIT (Flattened Image Tree) image verification mechan
Denial of service in the barebox bootloader (all versions up to and including 2026.04.0) lets an attacker on the same br
Out-of-bounds read vulnerabilities in barebox's ext4 extent parsing allow an attacker who can supply a malformed ext4 fi
EUVD-2026-29325
GHSA-gh28-ww79-7h4v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB