CVE-2026-17054: bounds in zephyrproject zephyr
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.
AI Analysis
Technical Summary
The Espressif ESP-hosted Wi-Fi driver in Zephyr parses SPI-received frames without properly validating the 16-bit TLV data_length field against the actual frame or buffer length. This allows pb_decode() to read up to approximately 62 KB beyond a 3188-byte stack buffer. Fragmented control responses can be misinterpreted due to discarded frames, causing the driver to read TLV headers from raw protobuf continuation bytes influenced by an unauthenticated attacker. The vulnerability leads to denial of service by causing device faults and heap exhaustion. Additional defects in fragment reassembly and message queue handling cause the RX thread to block permanently, disabling Wi-Fi reception until reboot.
Potential Impact
The vulnerability results in denial of service (DoS) by causing the device to fault due to out-of-bounds memory reads and heap exhaustion from invalid length prefixes. The Wi-Fi driver’s receive thread can become permanently blocked, stopping all Wi-Fi reception until the device is rebooted. There is no impact on confidentiality or integrity, and the out-of-bounds data does not reach the application layer. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, mitigating this vulnerability may require limiting exposure to unauthenticated attackers who can influence control responses or implementing external watchdog mechanisms to recover the device from a blocked Wi-Fi receive thread. The driver currently has no internal watchdog or restart path.
CVE-2026-17054: bounds in zephyrproject zephyr
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 v3.1
Score 5.3medium
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Espressif ESP-hosted Wi-Fi driver in Zephyr parses SPI-received frames without properly validating the 16-bit TLV data_length field against the actual frame or buffer length. This allows pb_decode() to read up to approximately 62 KB beyond a 3188-byte stack buffer. Fragmented control responses can be misinterpreted due to discarded frames, causing the driver to read TLV headers from raw protobuf continuation bytes influenced by an unauthenticated attacker. The vulnerability leads to denial of service by causing device faults and heap exhaustion. Additional defects in fragment reassembly and message queue handling cause the RX thread to block permanently, disabling Wi-Fi reception until reboot.
Potential Impact
The vulnerability results in denial of service (DoS) by causing the device to fault due to out-of-bounds memory reads and heap exhaustion from invalid length prefixes. The Wi-Fi driver’s receive thread can become permanently blocked, stopping all Wi-Fi reception until the device is rebooted. There is no impact on confidentiality or integrity, and the out-of-bounds data does not reach the application layer. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, mitigating this vulnerability may require limiting exposure to unauthenticated attackers who can influence control responses or implementing external watchdog mechanisms to recover the device from a blocked Wi-Fi receive thread. The driver currently has no internal watchdog or restart path.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-07-24T13:31:08.179Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab1a26455bf5e2cf580011a
Added to database: 09/21/2026, 21:32:20 UTC
Last enriched: 09/21/2026, 21:47:00 UTC
Last updated: 09/21/2026, 23:40:02 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.