{"id":34933,"date":"2026-10-09T16:32:29","date_gmt":"2026-10-09T08:32:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-19571"},"modified":"2026-10-09T16:32:29","modified_gmt":"2026-10-09T08:32:29","slug":"cve-2026-19571","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-19571","title":{"rendered":"CVE-2026-19571 [MEDIUM] &#8211; The ITE IT8xxx2 SHI host-command backend (subsys\/mgmt\/ec_host_cmd\/backends\/ec_host_cmd_bac"},"content":{"rendered":"<p>The ITE IT8xxx2 SHI host-command backend (subsys\/mgmt\/ec_host_cmd\/backends\/ec_host_cmd_backend_shi_ite.c) copied the 8-byte host-command request header from the SPI Rx FIFO directly into the shared receive buffer data-&gt;in_msg and only afterwards checked the protocol version and the derived packet length. The interrupt handler also accepted a chip-select assertion and an Rx-valid-length (RVLI) interrupt in any driver state other than SHI_STATE_DISABLED, so a new header could be parsed while the host-command thread was still processing the previous request out of the very same buffer.<\/p>\n<p>The host processor is the SPI controller and drives both chip select and the clock. After sending a well-formed request it can immediately de-assert chip select \u2014 which returns the driver to the ready state and re-enables the FIFO \u2014 and start a second transaction carrying a header with data_len = 0xFFFF. Those eight bytes are written into in_msg before the oversized length is rejected, so they land in a buffer whose contents verify_rx() in subsys\/mgmt\/ec_host_cmd\/ec_host_cmd_handler.c has already validated. If this lands in the window before the host-command thread executes args.input_buf_size = rx_header-&gt;data_len, the framework hands the registered command handler a 65535-byte input length over a 256-byte buffer.<\/p>\n<p>The result is an out-of-bounds read of up to roughly 64 KiB beyond the request buffer: command handlers that copy or echo input_buf_size bytes disclose adjacent embedded-controller memory back to the host or overflow the response buffer, and a read past the end of SRAM faults the controller. The same race also allows cmd_id and cmd_ver to be swapped after checksum verification and after handler lookup. Exploitation requires the ability to drive the inter-processor SHI bus (a compromised host OS or physical access to the SPI lines) and winning a timing race, which the SPI controller can retry indefinitely.<\/p>\n<p>The fix parses the header into a local struct ec_host_cmd_request_header and copies it into in_msg only after the length has been bounded by sizeof(data-&gt;in_msg), and ignores chip-select and RVLI interrupts outside SHI_STATE_READY_TO_RECV\/SHI_STATE_RECEIVING. A residual, bounded race remains: an end-of-transaction interrupt still resets the state to ready while the host-command thread owns the buffer, so a valid second request can still overwrite the in-flight request&#8217;s contents, unlike the NPCX backend which parks in SHI_STATE_CNL_RESP_NOT_RDY while the buffer is in use.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ITE IT8xxx2 SHI host-command backend (subsys\/mgmt\/ec_host_cmd\/backends\/ec_host_cmd_backend_shi_ite.c) copied the 8-byte host-command request header from the SPI Rx FIFO directly into the shared re<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-34933","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/34933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}