bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2024-57254

6.8medium

uboot-tools2024.04in 4 of 4 releases

Reach uboot-tools · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

An integer overflow in sqfs_inode_size in Das U-Boot before 2025.01-rc1 occurs in the symlink size calculation via a crafted squashfs filesystem.

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

References 3
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-17 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

CVE-2024-57254 is in U-Boot's squashfs filesystem driver (fs/squashfs/sqfs_inode.c, sqfs_inode_size symlink case), which is code that only runs inside the U-Boot bootloader binary when it mounts a squashfs.

The uboot-tools package in this build never compiles fs/: it runs only the tools-only and envtools make targets, whose object lists (tools/Makefile, tools/env) contain only image/FDT/crypto/env sources, and the resulting target binaries (fit_check_sign, mkenvimage, fw_printenv) contain no squashfs code.

The U-Boot bootloader itself is not built for this x86_64 image (BR2_TARGET_UBOOT is not set).

The unfixed source file is present in the tarball but is dead code for this package; document as not applicable.

Evidence 9
  1. Vulnerable symlink case of sqfs_inode_size is present unfixed in the 2024.04 source (returns sizeof(*symlink) + symlink_size with no overflow check; fix commit c8e929e5 landed in 2025.01-rc1)

    output/build/uboot-tools-2024.04/fs/squashfs/sqfs_inode.c:79-85

  2. Package builds only `tools-only` (CROSS_BUILD_TOOLS=y) and `envtools` targets, never the U-Boot bootloader or its fs/ directory

    buildroot/package/uboot-tools/uboot-tools.mk: UBOOT_TOOLS_BUILD_CMDS

  3. Object lists for all host tools reference only tools/*.o, generated/boot/*, generated/lib/*, generated/common/hash.o — no fs/squashfs sources; grep for squashfs/sqfs in tools/ returns nothing

    output/build/uboot-tools-2024.04/tools/Makefile:102-158 (dumpimage-mkimage-objs, fit_check_sign-objs, mkenvimage-objs)

  4. envtools (fw_printenv/fw_setenv, libubootenv.a) compile only crc32/ctype/env_attr/env_flags/fw_env sources

    output/build/uboot-tools-2024.04/tools/env/Makefile and tools/env/*.c

  5. strings of all built binaries contain zero matches for 'squashfs', 'sqfs' or the 'Inode not found' message from sqfs_inode.c

    output/build/uboot-tools-2024.04/tools/{fit_check_sign,mkenvimage,mkimage,dumpimage}, tools/env/fw_printenv

  6. Only these uboot-tools binaries are installed in the image; mkimage and dumpimage are not (BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE/DUMPIMAGE not set in output/.config:1427,1430)

    output/target/usr/bin/fit_check_sign, usr/bin/mkenvimage, usr/sbin/fw_printenv, usr/sbin/fw_setenv

  7. No U-Boot bootloader binary is built for the x86_64 image, so no runtime component in this product parses squashfs via U-Boot's fs/squashfs driver

    output/.config:3998 (# BR2_TARGET_UBOOT is not set), :4152 (# BR2_PACKAGE_HOST_UBOOT_TOOLS is not set)

  8. uboot-tools is selected directly for the target (FIT, FIT signature, fit_check_sign, mkenvimage, fw_printenv); consumed by src/confd/src/system-software.c and src/yangerd for U-Boot environment access only

    output/.config:1423-1429, configs/x86_64_defconfig:46-50

  9. The three Buildroot patches (drop configh, tools-only in no-dot-config-targets, CROSS_BUILD_TOOLS flags) are build-system only; none touch fs/squashfs, so the CVE is not fixed in source — it is simply not compiled

    output/build/uboot-tools-2024.04/.applied_patches_list

Version and patches

NVD range: U-Boot before 2025.01-rc1; fix is upstream commit c8e929e5758999933f9e905049ef2bf3fe6b140d (fs/squashfs: sqfs_inode_size overflow check). The 2024.04 tarball in this tree is within the affected range and the fix is NOT present in fs/squashfs/sqfs_inode.c. The three applied Buildroot patches do not touch this code. However, the uboot-tools package compiles only the host/env tools (tools-only + envtools), never fs/squashfs, and BR2_TARGET_UBOOT is not set, so the vulnerable code is never built into any binary in the image.

Recommendation

Document as N/A for the x86_64 image (vulnerable fs/squashfs driver is not compiled by uboot-tools; no U-Boot bootloader is built). No upgrade or backport needed for this CVE on this target. Note for other Infix targets: if any board builds the U-Boot bootloader proper (BR2_TARGET_UBOOT) from a version earlier than 2025.01 with CONFIG_FS_SQUASHFS enabled, that bootloader build — not uboot-tools — should be assessed separately.

Open questions

The build directory has been cleaned of .o/.cmd files, so compilation was confirmed from the Makefile object lists and from the absence of squashfs symbols/strings in the final binaries rather than from compile logs; this is consistent and sufficient. Other Infix board targets (e.g. aarch64 boards with a real U-Boot) are outside this x86_64 tree and were not reviewed.

Members of Kernel Kit decide. Sign in if you are one.