Reach uboot-tools · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
Integer overflows in memory allocation in Das U-Boot before 2025.01-rc1 occur for a crafted squashfs filesystem via sbrk, via request2size, or because ptrdiff_t is mishandled on x86_64.
Published 2025-02-18NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References 6
- source.denx.de/u-boot/u-boot/-/commit/0a10b49206a29b4aa2f80233a3e53ca0466bb0b3
- source.denx.de/u-boot/u-boot/-/commit/8642b2178d2c4002c99a0b69a845a48f2ae2706f
- source.denx.de/u-boot/u-boot/-/commit/c17b2a05dd50a3ba437e6373093a0d6a359cdee0
- www.openwall.com/lists/oss-security/2025/02/17/2
- lists.debian.org/debian-lts-announce/2025/05/msg00001.html
- cert-portal.siemens.com/productcert/html/ssa-577017.html
Fable 5.1 · high confidence · 2026-11-05
CVE-2024-57258 is in the U-Boot bootloader runtime: the SquashFS driver (fs/squashfs/) and the bootloader heap allocator (common/dlmalloc.c sbrk/request2size).
The uboot-tools package in this build compiles only the userspace utilities via make tools-only and make envtools (mkenvimage, fw_printenv/fw_setenv, fit_check_sign); no bootloader .config exists, fs/squashfs/ is gated on CONFIG_FS_SQUASHFS in a bootloader build, and tools/Makefile pulls in only generated/common/hash.o from common/.
The vulnerable source files are present but unfixed in the tarball, yet are never compiled into any shipped binary, so this build is not affected.
Infix on x86_64 does not ship a U-Boot bootloader from this package at all.
Evidence 8
Build runs only `make ... CROSS_BUILD_TOOLS=y tools-only` and `make ... envtools no-dot-config-targets=envtools`; the bootloader proper is never built.
buildroot/package/uboot-tools/uboot-tools.mk:61-64
Only mkimage/mkeficapsule/mkenvimage/fw_printenv/dumpimage/fit_check_sign are installable to target; selected ones here are mkenvimage, fw_printenv and fit_check_sign.
buildroot/package/uboot-tools/uboot-tools.mk:103-109
Installed binaries: fit_check_sign, mkenvimage, fw_printenv, fw_setenv only.
output/target/usr/bin, output/target/usr/sbin
The only common/ source pulled into the tools build is generated/common/hash.o; no dlmalloc.c and no fs/ sources.
output/build/uboot-tools-2024.04/tools/Makefile:139
fs/squashfs/ is only built when CONFIG_FS_SQUASHFS is set in a bootloader .config; no bootloader .config exists in the build dir (ls .config -> absent).
output/build/uboot-tools-2024.04/fs/Makefile:28
Source is the unfixed 2024.04 code (no overflow guards from upstream commits 0a10b49/8642b21/c17b2a0), confirming the NVD version match is correct, but this file is not compiled by the tools-only build.
output/build/uboot-tools-2024.04/common/dlmalloc.c:589-605 (sbrk) and :381 (request2size)
Only the three Buildroot build-system patches (drop configh, tools-only no-dot-config, CROSS_BUILD_TOOLS flags) are applied; none touch the CVE code, none needed.
output/build/uboot-tools-2024.04/.applied_patches_list
uboot-tools is selected for the target with FIT/signature/fit_check_sign/mkenvimage/fw_printenv options; it is a userspace tools package, not a bootloader build (BR2_TARGET_UBOOT is not what is selected).
configs/x86_64_defconfig:46-50 and output/.config
Version and patches
Affected: U-Boot < 2025.01-rc1 (fixed by upstream commits 0a10b49206a2, 8642b2178d2c, c17b2a05dd50 in fs/squashfs and common/dlmalloc.c). Our source is 2024.04 and contains the unfixed code, so the version match is technically correct. Buildroot patches applied: 0001-drop-configh-from-tools, 0002-tools-only-in-no-dot-config-targets, 0003-tools-Makefile-fix-C-LD-FLAGS-with-CROSS_BUILD_TOOLS — none address the CVE and none are needed because the affected files are not compiled.
Recommendation
Document as N/A: the uboot-tools package builds only host-style utilities (mkenvimage, fw_printenv/fw_setenv, fit_check_sign); the SquashFS driver and dlmalloc bootloader heap are not compiled into any shipped binary. No upgrade or backport required for this CVE. Consider adding a Buildroot-style IGNORE_CVES note for uboot-tools covering bootloader-runtime CVEs (fs/, common/dlmalloc.c, cmd/, drivers/) to reduce repeat triage.
Open questions
The build directory has been cleaned of .o/.cmd files, so compilation was inferred from the .mk targets, tools/Makefile and the installed binaries rather than from object files directly. If any Infix board target (not x86_64) ships an actual U-Boot bootloader from a separate uboot package with CONFIG_FS_SQUASHFS enabled, that package would need its own review; this verdict covers only uboot-tools in the x86_64 image.
Members of Kernel Kit decide. Sign in if you are one.