CVE-2026-34963

barebox EFI PE Loader Memory Safety Vulnerabilities

Published May 11, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
barebox version prior to 2026.04.0 contains multiple memory-safety vulnerabilities in the EFI PE loader in efi/loader/pe.c where integer overflow in virtual image size computation using 32-bit arithmetic on section VirtualAddress and size values allows undersized heap allocation, and PE section loading logic fails to validate that PointerToRawData plus copied size remains within the PE file buffer. An attacker can supply a malicious EFI PE binary via TFTP, USB, SD card, or network boot to trigger heap buffer overflow or out-of-bounds read from heap memory, potentially achieving code execution in bootloader context.

Analysis

AI-generated

Technical impact

The vulnerability is an integer overflow in the EFI PE loader's calculation of virtual image size, where 32‑bit arithmetic on section VirtualAddress and size values allows an undersized heap allocation. The loader also fails to verify that PointerToRawData plus the copied size remains inside the PE file buffer. As a result, an attacker supplying a crafted EFI PE binary can cause a heap buffer overflow or out‑of‑bounds read and potentially execute arbitrary code in the bootloader context.

Affected Systems

The flaw affects barebox firmware versions prior to v2026.04.0. The affected vendor is barebox:barebox. Any installation of these legacy firmware images that can be booted from TFTP, USB, SD card, or over the network is subject to this weakness.

Risk and Exploitability

The CVSS score of 8.6 denotes high severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is feasible because a malicious EFI PE file can be delivered via common boot media such as TFTP, USB, SD card, or network boot. The impact, if exploited, is code execution at the bootloader level, which could compromise the entire system before the operating system loads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update barebox to version 2026.04.0 or newer, which corrects the integer overflow and adds bounds checks to the PE loader.
  • Disable or restrict boot modes that load EFI binaries from untrusted sources (e.g., TFTP, network boot, or unknown USB/SD media) until the firmware is patched.
  • If an immediate firmware upgrade is not possible, monitor boot logs for abnormal memory access errors and ensure that only signed, verified firmware binaries are used.

Generated by OpenCVE AI on May 12, 2026 at 00:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Pengutronix
Pengutronix barebox
CPEs cpe:2.3:a:pengutronix:barebox:*:*:*:*:*:*:*:*
Vendors & Products Pengutronix
Pengutronix barebox
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Barebox
Barebox barebox
Vendors & Products Barebox
Barebox barebox
Type Values Removed Values Added
Description barebox version prior to 2026.04.0 contains multiple memory-safety vulnerabilities in the EFI PE loader in efi/loader/pe.c where integer overflow in virtual image size computation using 32-bit arithmetic on section VirtualAddress and size values allows undersized heap allocation, and PE section loading logic fails to validate that PointerToRawData plus copied size remains within the PE file buffer. An attacker can supply a malicious EFI PE binary via TFTP, USB, SD card, or network boot to trigger heap buffer overflow or out-of-bounds read from heap memory, potentially achieving code execution in bootloader context.
Title barebox EFI PE Loader Memory Safety Vulnerabilities
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:02 PM
Reserved
Mar 31, 2026, 5:58 PM
Status
Modified
Published
May 11, 2026, 11:19 PM
Modified
Nov 11, 2026, 8:10 PM