Reach uboot-tools · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
An integer overflow in sqfs_resolve_symlink in Das U-Boot before 2025.01-rc1 occurs via a crafted squashfs filesystem with an inode size of 0xffffffff, resulting in a malloc of zero and resultant memory overwrite.
Published 2025-02-18NVD
CVSS 3.1Physical · no privileges · no user interaction
How it is reached
- Attack vector
- Physical
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fable 5.1 · high confidence · 2026-11-05
CVE-2024-57255 is in the U-Boot bootloader's SquashFS driver (fs/squashfs/sqfs.c, sqfs_resolve_symlink), which is only linked into the u-boot bootloader binary.
The uboot-tools package in this build compiles only the host-style tools (tools-only and envtools make targets) and installs fit_check_sign, mkenvimage and fw_printenv/fw_setenv; no fs/ object is compiled and none of the installed binaries contain squashfs code. The vulnerable function is present unfixed in the unpacked source, but it is never compiled, so this build is not affected.
The separate U-Boot bootloader package (BR2_TARGET_UBOOT) is not enabled for x86_64 either.
Evidence 9
Vulnerable code (sz+1 malloc with u32 sz, no overflow check) is present unfixed in the 2024.04 source; the upstream fix 233945eba63e is not backported.
output/build/uboot-tools-2024.04/fs/squashfs/sqfs.c:419-436 (sqfs_resolve_symlink)
Package is built with `tools-only` and `envtools no-dot-config-targets=envtools` only; the bootloader (and fs/squashfs) is never built.
buildroot/package/uboot-tools/uboot-tools.mk:60-64 (UBOOT_TOOLS_BUILD_CMDS)
No object files were compiled under fs/, so sqfs.c was never built.
output/build/uboot-tools-2024.04/fs/ (find -name '*.o' -> 0)
Only mkimage/mkeficapsule/mkenvimage/fw_printenv/dumpimage/fit_check_sign can be installed; only the enabled subset is.
buildroot/package/uboot-tools/uboot-tools.mk:103-110 (UBOOT_TOOLS_INSTALL_TARGET_CMDS)
The only uboot-tools binaries installed on the target; grep for 'sqfs' in each returns 0 matches.
output/target/usr/bin/fit_check_sign, output/target/usr/bin/mkenvimage, output/target/usr/sbin/fw_printenv (fw_setenv symlink)
No references to squashfs/sqfs anywhere in the tools sources, confirming the tools have no squashfs parsing code.
output/build/uboot-tools-2024.04/tools/*.c, tools/env/*.c, tools/Makefile
No U-Boot bootloader is built for the x86_64 image, so the vulnerable driver is not present via the bootloader package either.
output/.config:3998 (# BR2_TARGET_UBOOT is not set)
Only three build-system patches (drop configh, tools-only no-dot-config, CROSS_BUILD_TOOLS flags); none touch fs/squashfs.
output/build/uboot-tools-2024.04/.applied_patches_list
BR2_PACKAGE_UBOOT_TOOLS=y with FIT_SUPPORT, FIT_SIGNATURE, FIT_CHECK_SIGN, MKENVIMAGE, FWPRINTENV; mkimage/dumpimage not selected.
configs/x86_64_defconfig:46-50 and output/.config
Version and patches
NVD: Das U-Boot before 2025.01-rc1 affected; fixed upstream by commit 233945eba63e (fs/squashfs: sqfs_resolve_symlink integer overflow check). Source in tree is 2024.04 and contains the unfixed function. Applied patches (0001-drop-configh-from-tools, 0002-tools-only-in-no-dot-config-targets, 0003-tools-Makefile-fix-C-LD-FLAGS-with-CROSS_BUILD_TOOLS) are build-system only and do not address the CVE. However, the affected file fs/squashfs/sqfs.c is not compiled by the uboot-tools package (tools-only/envtools targets).
Recommendation
Document as N/A for the x86_64 image: the vulnerable SquashFS driver is bootloader-only code that uboot-tools never compiles. Consider adding a Buildroot IGNORE_CVES-style note for uboot-tools. Note: for board configs that do build a U-Boot bootloader (BR2_TARGET_UBOOT, e.g. the aarch64/bpi_* boot defconfigs), this CVE should be assessed separately against that bootloader package and its CONFIG_FS_SQUASHFS setting.
Open questions
None for this build. Other Infix board defconfigs with BR2_TARGET_UBOOT enabled were not reviewed here.
Members of Kernel Kit decide. Sign in if you are one.