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.
References (3)
Core 3
Core References
Product product
https://github.com/barebox/barebox
Third Party Advisory third-party-advisory
https://www.vulncheck.com/advisories/barebox-efi-pe-loader-memory-safety-vulnerabilities
Scores
CVSS v3
8.4
EPSS
0.0016
EPSS Percentile
5.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-190
Status
published
Products (2)
barebox/barebox
< 2026.04.0
pengutronix/barebox
< 2026.04.0
Published
May 11, 2026
Tracked Since
May 12, 2026