CVE-2026-34962: barebox ext4 Directory Parsing Infinite Loop Denial of Service
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.
Security readout for executives and security teams
Plain-English summary
This issue can make barebox hang while reading a malicious ext4 filesystem image. For affected boot flows, that can stop a device from starting or resolving files during boot. The business impact is availability loss, mainly where devices accept, mount, or boot from ext4 media or images that are not tightly controlled.
Executive priority
Treat this as a targeted availability risk for embedded or appliance environments, not a broad enterprise emergency. Prioritize systems where boot availability matters and where external or semi-trusted media can be introduced.
Technical view
In barebox before 2026.04.0, ext4fs_iterate_dir() in fs/ext4/ext4_common.c does not reject directory entries with a zero length. A crafted ext4 directory entry can keep directory iteration from advancing, causing an infinite loop during directory listing or path resolution. The reported impact is denial of service only.
Likely exposure
Exposure is most likely in products or operational workflows using barebox before 2026.04.0 that parse ext4 filesystems during boot, recovery, provisioning, or diagnostics. Risk increases if removable media, update images, factory images, or customer-supplied filesystem images can reach barebox.
Exploitation context
The bundle does not cite active exploitation, and the CVE is not marked KEV. The attack is local in the CVSS vector and requires a malicious ext4 filesystem image. No source in the bundle supports remote exploitation, data theft, or integrity compromise.
Researcher notes
The key condition is a zero direntlen causing ext4 directory iteration not to advance. The public bundle identifies CWE-835 and availability impact only. Evidence is incomplete on downstream affected vendors, real-world exploit use, and whether all distributions include the upstream fix.
Mitigation direction
Upgrade barebox to version 2026.04.0 or later where feasible.
Check downstream device vendors for patched bootloader builds and update guidance.
Restrict use of untrusted removable media and ext4 images in boot paths.
Validate provenance and integrity of provisioning, recovery, and update images.
For unsupported products, ask the vendor for a backport or compensating controls.
Validation and detection
Inventory products and firmware builds that include barebox.
Confirm the barebox version is 2026.04.0 or later.
Review boot, recovery, and provisioning flows for ext4 filesystem parsing.
Check whether users or operators can supply boot media or filesystem images.
Run non-production regression tests for malformed ext4 directory handling.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-835: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-835 · source CWE mapping
Loop with Unreachable Exit Condition ('Infinite Loop')
Loop with Unreachable Exit Condition ('Infinite Loop') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.