bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2024-57256

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 ext4fs_read_symlink in Das U-Boot before 2025.01-rc1 occurs for zalloc (adding one to an le32 variable) via a crafted ext4 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

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

Fable 5.1 · high confidence · 2026-11-05

CVE-2024-57256 is in ext4fs_read_symlink() in fs/ext4/ext4_common.c, part of the U-Boot bootloader's ext4 filesystem driver. The vulnerable line is present unfixed in the 2024.04 source tree, but the Buildroot uboot-tools package only runs the tools-only and envtools make targets, which compile tools/ and tools/env/ exclusively; fs/ext4 is never referenced by tools/Makefile and nothing from fs/ is compiled.

The only artifacts shipped are mkenvimage, fw_printenv/fw_setenv and fit_check_sign, none of which contain ext4 code.

The U-Boot bootloader itself (BR2_TARGET_UBOOT) is not built for x86_64, so the vulnerable code is not present anywhere in the image.

Evidence 10
  1. Vulnerable code `zalloc(le32_to_cpu(diro->inode.size) + 1)` is present and unfixed in the source (fix commit 35f75d2a not backported).

    output/build/uboot-tools-2024.04/fs/ext4/ext4_common.c:2197

  2. Only 3 Buildroot patches applied (configh drop, tools-only no-dot-config, tools Makefile flags); none touch fs/ext4.

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

  3. Target build runs `make ... CROSS_BUILD_TOOLS=y tools-only` and `envtools` only — no bootloader build.

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

  4. `envtools` builds only tools/env; `tools-only` builds only tools/ via $(build)=tools.

    output/build/uboot-tools-2024.04/Makefile:2128-2133

  5. No object under fs/ is referenced; only generated/lib/{crc32,sha*,rsa,fdt...}.o are pulled from outside tools/.

    output/build/uboot-tools-2024.04/tools/Makefile (rg 'fs/')

  6. fw_printenv is built from fw_env.o crc32.o ctype.o linux_string.o env_attr.o env_flags.o fw_env_main.o only.

    output/build/uboot-tools-2024.04/tools/env/Makefile:25-29

  7. uboot-tools installs only /usr/bin/mkenvimage, /usr/sbin/fw_printenv, /usr/sbin/fw_setenv, /usr/bin/fit_check_sign.

    output/build/packages-file-list.txt:27287-27290

  8. No 'ext4' strings in the installed binaries.

    output/target/usr/bin/mkenvimage, output/target/usr/sbin/fw_printenv (rg -a ext4)

  9. `# BR2_TARGET_UBOOT is not set` — the U-Boot bootloader proper is not built for this x86_64 image.

    output/.config:3998

  10. `# BR2_PACKAGE_HOST_UBOOT_TOOLS is not set` — no host-side build either.

    output/.config:4152

Version and patches

Affected range per NVD/upstream: U-Boot before 2025.01-rc1; fixed by commit 35f75d2a46e5859138c83a75cd2f4141c5479ab9 (fs/ext4). Tree is 2024.04 with the fix not backported (ext4_common.c:2197 unchanged). Buildroot patches 0001-0003 are build-system only. The version match is technically correct for the source tarball, but the vulnerable file is not compiled by the uboot-tools package (tools-only/envtools targets).

Recommendation

Document as N/A: the ext4 filesystem driver is not compiled into any uboot-tools artifact and no U-Boot bootloader is built for x86_64. No upgrade or backport needed for this CVE. Re-evaluate if a target that builds the U-Boot bootloader with ext4 support (BR2_TARGET_UBOOT with CONFIG_FS_EXT4) is added.

Open questions

The build directory has been cleaned of .o/.cmd files, so compilation was inferred from the Makefile targets and the absence of ext4 symbols/strings in the installed binaries rather than from object files directly. Other Infix board configs (e.g. aarch64) that build a real U-Boot bootloader were not in scope of this review.

Review Av26.10.0aarch64_minimalNot affectedAccepted by a member, 2026-11-17. The vulnerable function is present unpatched in the tarball (output/build/uboot-tools-2024.04/fs/ext4/ext4_common.c:2197 still does zalloc(le32_to_cpu(diro->inode.size) + 1) with no U32_MAX guard, and none of the three Buildroot patches touch fs/), but it is never compiled.Open the review →

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