Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-74222 Overview
CVE-2026-74222 is a use-after-free vulnerability [CWE-416] in Das U-Boot before version 2026.10-rc5. The flaw resides in the httpc_recv_cb() callback within the lwIP wget implementation at net/lwip/wget.c. When HTTP data storage fails, the callback aborts the connection and frees the Protocol Control Block (PCB), but returns ERR_BUF instead of ERR_ABRT. The lwIP TCP input path then continues to reference the freed PCB, causing the bootloader to access released memory and crash.
Critical Impact
A network-adjacent attacker serving malicious HTTP responses to a U-Boot wget client can trigger memory corruption in the bootloader, resulting in denial of service and potential compromise of the boot process.
Affected Products
- Das U-Boot bootloader versions prior to 2026.10-rc5
- Builds that enable the lwIP network stack with wget support
- Embedded and IoT devices relying on U-Boot for network boot operations
Discovery Timeline
- 2026-09-29 - CVE-2026-74222 published to the National Vulnerability Database
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-74222
Vulnerability Analysis
The vulnerability exists in U-Boot's lwIP-based wget command, which downloads files over HTTP during the boot process. The receive callback httpc_recv_cb() processes incoming TCP payload buffers (pbuf) and writes them to a storage backend via store_block(). When store_block() returns an error, the callback invokes altcp_abort(pcb) to tear down the connection.
After altcp_abort() frees the PCB, the callback returns ERR_BUF. The lwIP stack interprets ERR_BUF as a recoverable buffer condition rather than an abort signal. The TCP input path continues processing and dereferences the now-freed PCB structure. This use-after-free triggers memory corruption during the bootloader's critical initialization phase.
Root Cause
The root cause is an incorrect error code convention in the lwIP altcp callback contract. When a receive callback calls altcp_abort(), it must return ERR_ABRT to signal that the PCB has been destroyed. Returning any other error code, including ERR_BUF, leaves the caller believing the PCB remains valid. Subsequent TCP state machine operations then operate on freed memory [CWE-416].
Attack Vector
Exploitation requires an attacker to control the HTTP server that a U-Boot device contacts through wget, or to intercept the connection on the network path. By supplying a response that causes store_block() to fail — for example, by exceeding the destination buffer size or triggering a storage backend error — the attacker forces the vulnerable code path. The resulting use-after-free crashes the bootloader and may enable further memory corruption primitives before secure boot verification completes.
// Patch: net/lwip/wget.c - return ERR_ABRT after aborting wget receive
for (buf = pbuf; buf; buf = buf->next) {
if (store_block(ctx, buf->payload, buf->len) < 0) {
altcp_abort(pcb);
- ret = ERR_BUF;
+ ret = ERR_ABRT;
goto out;
}
}
// Source: https://github.com/u-boot/u-boot/commit/2d94618a58aeb7630f18eee33419ce48d0fd3616
Detection Methods for CVE-2026-74222
Indicators of Compromise
- Unexpected U-Boot resets, hangs, or watchdog reboots occurring during or immediately after wget operations over HTTP.
- Boot logs showing lwIP TCP callback errors, aborted HTTP transfers, or memory faults near httpc_recv_cb().
- HTTP responses to boot clients containing payloads larger than the configured wget destination buffer.
Detection Strategies
- Audit U-Boot build configurations for CONFIG_WGET and CONFIG_NET_LWIP to identify devices exposing the vulnerable code path.
- Inspect device fleet firmware inventories for U-Boot versions earlier than 2026.10-rc5.
- Capture serial console output during boot to detect crash signatures aligned with lwIP pbuf processing.
Monitoring Recommendations
- Monitor network segments used for TFTP and HTTP boot for unauthorized HTTP servers responding to U-Boot clients.
- Alert on repeated device boot failures correlated with HTTP fetch attempts, which may indicate exploitation attempts.
- Log and review any boot-time network traffic on production devices where remote provisioning is not expected.
How to Mitigate CVE-2026-74222
Immediate Actions Required
- Upgrade U-Boot to 2026.10-rc5 or later and reflash affected devices through your firmware update process.
- Disable the wget command in U-Boot builds where HTTP boot is not required by removing CONFIG_WGET from the defconfig.
- Restrict U-Boot network boot to trusted, isolated management networks until firmware updates are deployed.
Patch Information
The fix is committed upstream in the U-Boot repository as commit 2d94618a58aeb7630f18eee33419ce48d0fd3616, which changes the return value in httpc_recv_cb() from ERR_BUF to ERR_ABRT after calling altcp_abort(). This aligns the callback with the lwIP altcp API contract and prevents the TCP input path from accessing the freed PCB. Review the U-Boot upstream patch and the VulnCheck advisory for full technical details.
Workarounds
- Use signed images and enforce secure boot so that malicious payloads delivered before the crash cannot subvert the boot chain.
- Prefer TFTP over a controlled internal network instead of HTTP wget for network boot until patched firmware is deployed.
- Segment device management networks and apply strict egress filtering so U-Boot cannot reach untrusted HTTP servers.
# Disable lwIP wget in U-Boot build configuration
# Edit configs/<board>_defconfig and remove or unset:
# CONFIG_WGET=y
# CONFIG_CMD_WGET=y
make <board>_defconfig
scripts/config --disable CONFIG_WGET
scripts/config --disable CONFIG_CMD_WGET
make -j$(nproc)
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

