CVE-2026-17054: Out-of-bounds read and permanent loss of Wi-Fi reception in the ESP-hosted SPI driver's frame reassembly
The Espressif ESP-hosted Wi-Fi driver (drivers/wifi/esphosted/) parses frames received over SPI from the ESP co-processor in esphostedeventtask(). For control frames it took the 16-bit TLV field datalength straight off the wire and passed it to pbistreamfrombuffer(frame.datavalue, frame.datalength) without checking it against the frame length or the receive buffer. frame.datavalue sits 26 bytes into a 3188-byte stack object, so a datalength of up to 0xFFFF makes pbdecode() read up to roughly 62 KB past the end of that object.
Only the first fragment of a fragmented control response carries a TLV header; the pre-fix driver performed half-duplex SPI transactions and silently discarded any frame the co-processor queued while the host was transmitting (esphostedhalspitransfer() aliased the RX buffer onto the TX buffer). When the discarded frame is the first fragment of a fragmented response, the driver treats the next fragment as a new frame — its per-fragment header and checksum are genuine, so both validation steps pass — and reads the TLV header out of raw protobuf continuation bytes. Those bytes come from control responses whose size and content an adjacent, unauthenticated attacker can influence, notably the AP scan list, which grows with the number and SSID length of access points in radio range.
The impact is denial of service rather than disclosure. Reading past the end of the RAM region faults the device, and CONFIGNANOPBENABLEMALLOC is selected by the driver, so garbage length prefixes read out of bounds also drive heap allocations. The out-of-bounds bytes themselves do not reach the application: pbdecode() is started mid-stream on raw protobuf continuation bytes and so almost always fails outright, and anything that did decode would still have to pass esphostedresponse(), which requires an exact msgid match against the pending request, and then esphostedctrlresponse(), which requires a success resp — an attacker influences the size and content of legitimate control responses, not the structure decoded out of misaligned bytes. Two related defects in the same receive path make the denial of service permanent: the fragment reassembly guard was sized with ESPFRAMESIZE instead of ESPFRAMEMAXPAYLOAD and, when tripped, returned from the sole RX thread instead of dropping the frame, and unhandled control events were queued with kmsgqput(..., KFOREVER) on an eight-entry queue that nothing drains, blocking that same thread. The driver has no watchdog or restart path, so either condition ends all Wi-Fi reception until the device is rebooted.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
The issue is in the ESP-hosted Wi-Fi driver under drivers/wifi/esp_hosted/ when it uses SPI to communicate with an ESP co-processor. The provided information does not identify specific affected product releases or state whether the driver is enabled by default.
What conditions are required for exploitation?
An attacker must be able to cause the first fragment of a fragmented control response to be discarded while the host is transmitting, then influence continuation bytes that the driver misinterprets as a new frame's TLV header. The vector is adjacent-network, requires no privileges or user interaction, and has high attack complexity.
Is a workaround available if the fix cannot be applied immediately?
The provided information does not describe a configuration workaround or mitigation. It identifies the upstream fix commit, but does not provide release or backport information.