Skip to main content

barebox CVE-2026-34961

| EUVDEUVD-2026-29323 MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-11 VulnCheck GHSA-vv9w-vff6-5rx9
6.9
CVSS 4.0 · Vendor: VulnCheck
Share

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
7.1 HIGH

Network boot path enables adjacent-network exploitation without credentials; C:L reflects potential arbitrary disk offset reads per description; A:H for boot-time crash.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 23, 2026 - 23:34 vuln.today
Analysis Generated
Jul 23, 2026 - 23:34 vuln.today
CVSS changed
May 11, 2026 - 22:37 NVD
6.2 (MEDIUM) 6.9 (MEDIUM)
CVE Published
May 11, 2026 - 21:09 nvd
MEDIUM 6.9

DescriptionCVE.org

barebox prior to version 2026.04.0 contains out-of-bounds read vulnerabilities in ext4 extent parsing due to missing validation of the eh_entries field against buffer capacity in fs/ext4/ext4_common.c. Attackers can supply a malicious ext4 filesystem image via USB, SD card, or network boot to trigger heap out-of-bounds reads during boot-time filesystem parsing, potentially redirecting reads to arbitrary disk offsets.

AnalysisAI

Out-of-bounds read vulnerabilities in barebox's ext4 extent parsing allow an attacker who can supply a malformed ext4 filesystem image - via USB, SD card, or network boot - to crash the bootloader during startup, preventing a device from completing its boot sequence. All barebox versions prior to v2026.04.0 fail to validate the eh_entries field in ext4 extent headers against actual buffer capacity in fs/ext4/ext4_common.c, enabling heap out-of-bounds reads that can additionally redirect parsing to arbitrary disk offsets. No public exploit has been identified at time of analysis; EPSS (0.01%, 2nd percentile) and SSVC (exploitation: none, automatable: no) both confirm low near-term exploitation probability, though the physical-media attack surface makes this relevant to embedded device supply chain and physical security programs.

Technical ContextAI

barebox is an open-source bootloader for embedded Linux systems, functionally analogous to U-Boot, executing during the earliest hardware initialization phase before the operating system loads. The vulnerability resides in fs/ext4/ext4_common.c within the ext4 extent tree parsing logic. CWE-125 (Out-of-Bounds Read) identifies the root cause: the parser trusts the eh_entries field of the ext4_extent_header structure - which declares the number of extent entries in a block - without verifying it does not exceed the actual allocated buffer size. For each excess entry, the code performs a heap read beyond the buffer boundary, a classic length-field trust flaw in a parser consuming untrusted external data. The CPE cpe:2.3:a:barebox:barebox:*:*:*:*:*:*:*:* covers all barebox versions before the fix. The release notes for v2026.04.0 authored by Sascha Hauer explicitly corroborate the fix, stating the ext4 code received 'more protection against crafted images.'

RemediationAI

The primary fix is to upgrade barebox to v2026.04.0 or later, available at https://github.com/barebox/barebox/releases/tag/v2026.04.0, published April 17, 2026. This release is confirmed by the maintainer Sascha Hauer to include hardening of the ext4 extent parsing code against crafted images. Organizations that cannot upgrade immediately should consider disabling ext4 filesystem support in their barebox build configuration if it is not required for the boot flow, eliminating the vulnerable code path at compile time with no runtime trade-off. As a physical-access compensating control, enforce strict physical security on target devices to prevent unauthorized insertion of USB drives or SD cards. For network boot environments, restrict TFTP and NFS server access to trusted, authenticated sources and validate boot image integrity via signed images or measured boot where supported - note that unsigned network boot remains a weaker defense. The VulnCheck advisory at https://www.vulncheck.com/advisories/barebox-ext4-extent-parsing-out-of-bounds-read provides additional technical context for remediation prioritization.

Share

CVE-2026-34961 vulnerability details – vuln.today

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