bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2024-57257

2.4low

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

A stack consumption issue in sqfs_size in Das U-Boot before 2025.01-rc1 occurs via a crafted squashfs filesystem with deep symlink nesting.

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
None
Integrity
None
Availability
Low
Scope
Unchanged

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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

Fable 5.1 · high confidence · 2026-11-05

CVE-2024-57257 is an unbounded recursion in sqfs_size() in fs/squashfs/sqfs.c, which is part of the U-Boot bootloader's filesystem driver.

The vulnerable source is present unpatched in the 2024.04 tarball (sqfs.c:1647 still recurses without a depth limit; none of the three Buildroot patches touch it), but the uboot-tools package only builds the userspace tools-only and envtools make targets and ships mkenvimage and fw_printenv/fw_setenv.

fs/squashfs is never compiled (no object files under fs/, no sqfs strings in any built or installed binary), and this x86_64 build does not select U-Boot as a bootloader (no BR2_TARGET_UBOOT in output/.config). The vulnerable code is therefore not in the product image.

Evidence 8
  1. sqfs_size() recurses into itself on symlink inodes with no depth bound — the upstream fix (4f5cc096) is NOT present in the source; the code is vulnerable as source

    output/build/uboot-tools-2024.04/fs/squashfs/sqfs.c:1585-1647

  2. Only 0001-drop-configh-from-tools, 0002-tools-only-in-no-dot-config-targets, 0003-tools-Makefile-fix-C-LD-FLAGS applied; none touch fs/squashfs

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

  3. Build runs only `make tools-only` and `make envtools`; the U-Boot bootloader proper (and its fs/ drivers) is never built

    buildroot/package/uboot-tools/uboot-tools.mk:61-64

  4. Only mkenvimage and fw_printenv (+ fw_setenv symlink) are installed to the target

    buildroot/package/uboot-tools/uboot-tools.mk:81,87-88

  5. No reference to fs/ or squashfs in the tools build rules

    output/build/uboot-tools-2024.04/tools/Makefile, tools/env/Makefile

  6. No object files under fs/ — squashfs sources were never compiled

    output/build/uboot-tools-2024.04/fs/ (find -name '*.o')

  7. grep -a -c sqfs returns 0 for both installed binaries (and for the build-dir copies)

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

  8. BR2_PACKAGE_UBOOT_TOOLS=y with MKENVIMAGE/FWPRINTENV only; BR2_TARGET_UBOOT is not set, so no U-Boot bootloader is built for x86_64

    output/.config:1423 and configs/x86_64_defconfig:46-50

Version and patches

NVD range: U-Boot before 2025.01-rc1; fixed upstream by commit 4f5cc096bfd0a591f8a11e86999e3d90a9484c34 (fs/squashfs: limit symlink nesting in sqfs_size). The 2024.04 source in this tree does not contain the fix and the three Buildroot patches do not address it, so the version match is correct for the source — but the affected file (fs/squashfs/sqfs.c) is not compiled by the uboot-tools package, which only builds host-style env/image tools.

Recommendation

Document as N/A: the vulnerable squashfs driver is a bootloader-only component that the uboot-tools package never compiles, and this x86_64 image does not use U-Boot as its bootloader. No upgrade or backport needed for this finding. Re-evaluate only if a board profile starts building U-Boot proper (BR2_TARGET_UBOOT) with CONFIG_FS_SQUASHFS.

Open questions

None material. Intermediate .o files appear to have been cleaned from the build directory, so absence of fs/*.o is corroborated by the Makefile targets and by the absence of sqfs symbols/strings in the produced binaries rather than by object listings alone.

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