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
View

Attack ChainAIDerived

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

  1. Access
    Gain physical presence or network boot server access
  2. Delivery
    Craft ext4 image with oversized eh_entries in extent header
  3. Exploit
    Present malicious image via USB, SD card, or TFTP/NFS boot source
  4. Execution
    barebox mounts and parses ext4 extent tree at boot
  5. Persist
    Unvalidated eh_entries drives heap out-of-bounds read
  6. Impact
    Boot-time crash denies device availability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

The vulnerability is triggered when barebox parses an ext4 filesystem image during the boot-time initialization sequence. Specific conditions required: (1) the target device must run barebox prior to v2026.04.0 with ext4 filesystem support compiled into the build - devices using only FAT, UBIFS, or other non-ext4 filesystems at boot are not exposed; (2) the attacker must be able to deliver a malicious ext4 image via USB mass storage, SD/eMMC card, or a network boot source (TFTP/NFS server on the local network segment); (3) the device must attempt to read from the attacker-controlled media during boot. Network boot exploitation requires a position on the same network segment as the TFTP/NFS boot server or the ability to intercept that traffic. USB and SD card exploitation requires physical presence at the device. The vulnerability operates before any OS-level authentication mechanisms are active, meaning no credentials or session on the target system are required, but the attack is bounded to the boot phase and does not affect a running system.

Impact

The CVSS 4.0 score of 6.9 with vector AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H reflects a local-access, low-complexity denial-of-service with high availability impact and no confidentiality or integrity effect per the vendor's scoring. EPSS at 0.01% (2nd percentile) and SSVC exploitation status of 'none' with automatable 'no' all converge on a low near-term exploitation probability - this is not currently being actively exploited and automated mass exploitation is not feasible given the physical delivery requirement. The primary real-world risk is to embedded devices where an adversary has physical access (USB/SD card insertion) or control over a network boot infrastructure (TFTP/NFS server). The 'Information Disclosure' tag and the description's mention of 'redirecting reads to arbitrary disk offsets' suggest a potential confidentiality impact not captured by the official VC:N rating - this discrepancy is noted but unresolved from available data. For vendors shipping products built on barebox, this represents a meaningful supply chain or insider threat concern, particularly for devices deployed in physically accessible environments.

Exploit ScenarioDerived

An attacker with physical access to an embedded device formats a USB drive or SD card containing a crafted ext4 filesystem image in which the extent header's eh_entries field is set to a value far exceeding the actual buffer capacity. When the target device powers on and barebox attempts to parse this filesystem during boot, the missing bounds check causes a heap out-of-bounds read for each excess extent entry, crashing the bootloader and leaving the device unable to complete startup. No public proof-of-concept code has been confirmed at time of analysis, but the attack primitive is straightforward and achievable by any attacker familiar with the ext4 on-disk format.

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

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.

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.

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 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.'

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 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
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 - 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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Low
niche embedded bootloader used by OEMs and embedded developers, not general enterprise software
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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