Boot hang via zero-length ext4 directory entry
Published May 11, 2026 · Updated May 11, 2026
Infinite loop in barebox before 2026.04.0 allows attackers to halt boot by supplying a crafted ext4 filesystem image. In ext4fs_iterate_dir() in fs/ext4/ext_barebox.c, a zero direntlen is added to fpos without rejection, so iteration never advances and repeated dir_emit() allocations exhaust memory. Triggering it requires barebox to mount and traverse attacker-controlled boot media or an image delivered through a compromised update or rogue file server; the resulting panic prevents the device from booting.
Summary
What happened
Infinite loop in barebox before 2026.04.0 allows attackers to halt boot by supplying a crafted ext4 filesystem image. In ext4fs_iterate_dir() in fs/ext4/ext_barebox.c, a zero direntlen is added to fpos without rejection, so iteration never advances and repeated dir_emit() allocations exhaust memory. Triggering it requires barebox to mount and traverse attacker-controlled boot media or an image delivered through a compromised update or rogue file server; the resulting panic prevents the device from booting.
The record
- CVE
- CVE-2026-34962
- Published
- May 11, 2026
- Updated
- May 11, 2026
- Vendor
- Pengutronix
- Product
- barebox
- Classifications
- CWE-835, T1499
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 11, 2026CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=2026.04.0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Directory Infinite Loop demonstrationproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo