bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-29009

8.8high

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

U-Boot before 2026.07-rc2 contains a buffer overflow vulnerability in nfs_readlink_reply() (net/nfs-common.c) when CONFIG_CMD_NFS is enabled, allowing a malicious or compromised NFS server to overflow the 2048-byte nfs_path_buff buffer by returning multiple relative symlink targets that are appended without cumulative length validation. Attackers can send two or more READLINK responses containing relative symlink targets of approximately 1100 bytes each to corrupt adjacent BSS variables including nfs_server_ip, nfs_server_mount_port, nfs_server_port, nfs_our_port, nfs_state, and rpc_id, potentially achieving memory corruption and control over the NFS client state machine.

Published 2026-07-08NVD

CVSS 4.0Network · no privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None

What it costs

Confidentiality
None
Integrity
Low
Availability
High

What it costs other systems

Confidentiality
None
Integrity
None
Availability
None

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

References 6
Review Av26.10.0aarch64_minimalNot affected✓ accepted by a member, 2026-11-12 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

The vulnerable function exists in the 2024.04 tarball (net/nfs.c:657 nfs_readlink_reply, relative-symlink branch appends to the 2048-byte nfs_path_buff with no cumulative length check), and none of the three Buildroot patches touch it, so the version match is correct.

However, the Buildroot uboot-tools package never compiles the U-Boot bootloader: uboot-tools.mk only runs make tools-only and make envtools, which build tools/ and tools/env/ (mkimage, mkenvimage, dumpimage, fit_check_sign, fw_printenv). No object under net/ is produced in the build directory, the shipped target binaries contain no NFS client symbols, and BR2_TARGET_UBOOT is not set so no U-Boot bootloader image is built from Buildroot at all.

The CVE's code path (CONFIG_CMD_NFS NFS client in the bootloader) is therefore not in this build.

Evidence 9
  1. Vulnerable code is present in the source: relative target branch does strcat(nfs_path, "/") then memcpy(nfs_path + pathlen, ..., rlen) with no check against sizeof(nfs_path_buff) (2048, line 81). Confirms the version match is a real match, not a false positive.

    output/build/uboot-tools-2024.04/net/nfs.c:657-697 (nfs_readlink_reply)

  2. Only three patches applied (drop-configh-from-tools, tools-only-in-no-dot-config-targets, tools/Makefile CROSS_BUILD_TOOLS flags); none touch net/nfs.c, so no backport of the fix.

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

  3. Target package builds only `tools-only` and `envtools` make targets; the bootloader proper (and net/) is never built.

    buildroot/package/uboot-tools/uboot-tools.mk:60-65 (UBOOT_TOOLS_BUILD_CMDS)

  4. Host package likewise only builds `tools-only` and `envtools`.

    buildroot/package/uboot-tools/uboot-tools.mk:226-231 (HOST_UBOOT_TOOLS_BUILD_CMDS)

  5. `tools-only` recurses only into tools/, `envtools` only into tools/env; net/ is not in either target.

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

  6. No object files exist under net/ in the configured build directory; net/nfs.c was never compiled.

    output/build/uboot-tools-2024.04/net/ (find for *.o)

  7. Only fit_check_sign, mkenvimage and fw_printenv/fw_setenv are installed in the target image; grep -a for nfs_path in all three returns 0 matches.

    buildroot/package/uboot-tools/uboot-tools.mk:103-110 + output/target/usr/bin/{fit_check_sign,mkenvimage}, usr/sbin/fw_printenv

  8. `# BR2_TARGET_UBOOT is not set` — no U-Boot bootloader is built by Buildroot for this image, and output/images contains no u-boot binary.

    output/.config:3912

  9. BR2_PACKAGE_UBOOT_TOOLS=y and BR2_PACKAGE_HOST_UBOOT_TOOLS=y: package is selected, but only as userspace image/env tooling (FIT, mkenvimage, fw_printenv, fdt_add_pubkey).

    output/.config:1375-1382, 4066-4071

Version and patches

NVD range: U-Boot before 2026.07-rc2, fixed upstream by commit d6694018eadd (adds cumulative length validation in nfs_readlink_reply, net/nfs-common.c; in 2024.04 the same code lives in net/nfs.c). 2024.04 is inside the affected range and the source in this tree carries the unfixed code. 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) do not touch the NFS client. The vulnerable feature (CONFIG_CMD_NFS bootloader NFS client) is simply not compiled: this package only builds the userspace tools.

Recommendation

No action required; document as N/A for uboot-tools (userspace tools only, bootloader NFS client not compiled). This CVE — and all other CVEs in U-Boot's bootloader network stack matched against the uboot-tools CPE — can be ignored with a Buildroot IGNORE_CVES-style justification. If any Infix board ships a real U-Boot bootloader built outside this Buildroot tree, assess that bootloader's version and CONFIG_CMD_NFS setting separately.

Open questions

None for this package. The tree does not build a target U-Boot bootloader (BR2_TARGET_UBOOT not set), so any vendor/board bootloader supplied outside Buildroot is out of scope of this review.

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