Reach uboot-tools · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
U-Boot through 2026.04-rc3 contains an out-of-bounds read vulnerability in tcp_rx_state_machine() (net/tcp.c) when CONFIG_PROT_TCP is enabled, allowing remote attackers to read beyond TCP segment boundaries by crafting a malicious packet with a mismatched IP total length and TCP data offset field. Attackers can send a packet with an IP total length of 40 bytes and a TCP data offset claiming 60 bytes of header to cause tcp_parse_options() to read 40 bytes past the end of the TCP segment, potentially corrupting connection state variables such as rmt_win_scale and rmt_timestamp to disrupt TCP window calculations.
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
- None
- Availability
- Low
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:N/VA:L/SC:N/SI:N/SA:N
Fable 5.1 · high confidence · 2026-11-05
CVE-2026-29007 is in the U-Boot bootloader's network stack (net/tcp.c, tcp_rx_state_machine/tcp_parse_options, gated by CONFIG_PROT_TCP).
The Buildroot uboot-tools package in this build only compiles the host-style userspace utilities via the tools-only and envtools make targets (mkenvimage, fw_printenv/fw_setenv, fit_check_sign), none of which link any object from net/.
The actual bootloader for the x86_64 target is Barebox (BR2_TARGET_BAREBOX=y, BR2_TARGET_UBOOT not set), so no U-Boot firmware with a TCP stack is in the image.
The vulnerable source file exists in the tarball but is never compiled, so the finding is not applicable.
Evidence 9
Package builds only `tools-only` (CROSS_BUILD_TOOLS=y) and `envtools` make targets; U-Boot proper (and net/) is never built.
buildroot/package/uboot-tools/uboot-tools.mk: UBOOT_TOOLS_BUILD_CMDS
`obj-$(CONFIG_PROT_TCP) += tcp.o` — tcp.c is only built as part of the firmware net/ directory, which the tools-only target does not descend into.
output/build/uboot-tools-2024.04/net/Makefile:34
Only CONFIG_FIT_PRINT, CONFIG_TOOLS_FIT_SIGNATURE*, CONFIG_TOOLS_FIT_RSASSA_PSS are defined; no CONFIG_PROT_TCP, no board .config exists in the build dir (include/config/auto.conf is empty).
output/build/uboot-tools-2024.04/include/generated/autoconf.h
Object lists for mkenvimage, mkimage/dumpimage/fit_check_sign/fdt_add_pubkey contain no net/ or tcp objects.
output/build/uboot-tools-2024.04/tools/Makefile:63-158
Only these userspace utilities are installed into the target image; mkimage and dumpimage are not installed (BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE/DUMPIMAGE not set).
output/target/usr/bin/fit_check_sign, output/target/usr/bin/mkenvimage, output/target/usr/sbin/fw_printenv -> fw_setenv
BR2_TARGET_BAREBOX=y and `# BR2_TARGET_UBOOT is not set` — the x86_64 image's bootloader is Barebox, not U-Boot, so no U-Boot network stack ships on the device.
output/.config:3970 and :3998
Only BR2_PACKAGE_UBOOT_TOOLS* options selected (FIT support, FIT signature, fit_check_sign, mkenvimage); no BR2_TARGET_UBOOT.
configs/x86_64_defconfig:46-50
Unfixed vulnerable hunk is present in the source tarball (tcp_parse_options called with header length derived from tcp_hlen without bounding against pkt_len), confirming the version is nominally in range but the file is simply not compiled.
output/build/uboot-tools-2024.04/net/tcp.c:672-678
Three Buildroot patches apply (drop configh from tools, tools-only in no-dot-config-targets, tools/Makefile CROSS_BUILD_TOOLS flags); none touch net/tcp.c, which is irrelevant since the file is not built.
output/build/uboot-tools-2024.04/.applied_patches_list
Version and patches
NVD range: U-Boot through 2026.04-rc3 (fix in 2026.04 final / post-rc3). u-boot-2024.04 source is within the range and net/tcp.c in the tree contains the unfixed code. No applied patch addresses it. However the Buildroot uboot-tools package (CPE denx:u-boot) compiles only tools/ and tools/env/ userspace utilities; net/tcp.c (CONFIG_PROT_TCP firmware code) is not compiled into anything in this build. The CPE mapping is technically correct for the source tarball but the vulnerable component is not part of the built artifact.
Recommendation
Document as N/A: the vulnerable code (U-Boot firmware TCP stack, net/tcp.c) is not compiled by the uboot-tools package and the x86_64 product boots with Barebox, not U-Boot. No upgrade or backport needed for this CVE on this target. Consider adding a Buildroot UBOOT_TOOLS_IGNORE_CVES entry or SBOM annotation for CVEs confined to U-Boot firmware code (net/, cmd/, drivers/) since they will keep matching the uboot-tools CPE. Note: other Infix targets that select BR2_TARGET_UBOOT (e.g. aarch64/bpi boards) should be reviewed separately against their U-Boot build and CONFIG_PROT_TCP setting.
Open questions
None for the x86_64 target. Other board configs in configs/ (aarch64/bpi_* etc.) may build U-Boot proper and need a separate check of their U-Boot version and CONFIG_PROT_TCP; that is outside the scope of this x86_64 review.
Members of Kernel Kit decide. Sign in if you are one.