---
id: CVE-2026-34961
title: >-
  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
summary: >-
  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 ex…
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-125
vendor: pengutronix
product: barebox
affected:
  - barebox < 2026.04.0
patched:
  - barebox 2026.04.0
published: '2026-05-11'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-34961'
references:
  - url: 'https://github.com/barebox/barebox'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/barebox/barebox/releases/tag/v2026.04.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/barebox-ext4-extent-parsing-out-of-bounds-read
    label: disclosure@vulncheck.com
  - url: 'https://y637f9qq2x.com/posts/barebox-sandbox-vulns/'
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00219
epssPercentile: 0.11123
ingestedAt: '2026-07-18T03:20:40.166Z'
---

## Overview

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.

## Affected

- `barebox < 2026.04.0`

## Remediation

Upgrade past the affected range:

- `barebox 2026.04.0`
