CVE-2026-17054
Received Received - Intake

Buffer Overflow in Espressif ESP-Hosted Wi-Fi Driver

Vulnerability report for CVE-2026-17054, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-21

Last updated on: 2026-09-21

Assigner: Zephyr Project

Description

The Espressif ESP-hosted Wi-Fi driver (drivers/wifi/esp_hosted/) parses frames received over SPI from the ESP co-processor in esp_hosted_event_task(). For control frames it took the 16-bit TLV field data_length straight off the wire and passed it to pb_istream_from_buffer(frame.data_value, frame.data_length) without checking it against the frame length or the receive buffer. frame.data_value sits 26 bytes into a 3188-byte stack object, so a data_length of up to 0xFFFF makes pb_decode() 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 (esp_hosted_hal_spi_transfer() 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 CONFIG_NANOPB_ENABLE_MALLOC 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: pb_decode() 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 esp_hosted_response(), which requires an exact msg_id match against the pending request, and then esp_hosted_ctrl_response(), 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 ESP_FRAME_SIZE instead of ESP_FRAME_MAX_PAYLOAD and, when tripped, returned from the sole RX thread instead of dropping the frame, and unhandled control events were queued with k_msgq_put(..., K_FOREVER) 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-21
Last Modified
2026-09-21
Generated
2026-09-22
AI Q&A
2026-09-22
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
espressif esp_hosted_wifi_driver *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the Espressif ESP-hosted Wi-Fi driver where it fails to validate the length of control frames received from the ESP co-processor. The driver reads a 16-bit length field directly from the network and uses it to decode protobuf data without checking if it fits within the allocated buffer. This can cause the driver to read up to 62 KB past the end of a 3188-byte stack object, leading to memory corruption or crashes.

Detection Guidance

This vulnerability is specific to the Espressif ESP-hosted Wi-Fi driver and may not have direct detection commands. Monitor for Wi-Fi disconnections, system crashes, or heap exhaustion errors in logs. Check for repeated SPI communication failures or unexpected protobuf decoding errors in the driver logs.

Impact Analysis

The vulnerability causes a denial of service by crashing the device or exhausting memory. It can also permanently disable Wi-Fi reception until the device is rebooted due to unhandled control events blocking the RX thread or incorrect fragment reassembly logic.

Compliance Impact

This vulnerability primarily causes denial of service by reading past RAM boundaries or triggering excessive heap allocations, which crashes the device. It does not lead to data disclosure or unauthorized access. Compliance impacts would be indirect, such as potential disruptions to services requiring continuous Wi-Fi connectivity for data processing or transmission, which could affect availability requirements under GDPR or HIPAA.

Mitigation Strategies

Update the ESP-hosted Wi-Fi driver to the latest patched version. Disable Wi-Fi temporarily if an update is unavailable. Monitor for denial-of-service symptoms like device freezes or reboot loops. Ensure CONFIG_NANOPB_ENABLE_MALLOC is disabled if possible to reduce heap allocation risks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-17054. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart