# CVE-2026-19571: Race condition in ITE IT8xxx2 SHI host-command backend lets a second SPI request write an unvalidated length into the in-flight request buffer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.7
- **CVSS:** 6.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.12% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-10-09T07:16:40.717Z
- **Modified:** 2026-11-04T05:18:48.523Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

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-\>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.

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 — which returns the driver to the ready state and re-enables the FIFO — 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-\>data\_len, the framework hands the registered command handler a 65535-byte input length over a 256-byte buffer.

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.

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-\>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's contents, unlike the NPCX backend which parks in SHI\_STATE\_CNL\_RESP\_NOT\_RDY while the buffer is in use.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-19571. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-19571.md
Affected: zephyrproject zephyr >= 3.3.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-19571 being exploited?

There is no confirmed exploitation: CVE-2026-19571 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.12% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-19571?

Medium: CVSS 6.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-19571?

zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-19571?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-19571?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-4x98-6536-cwjv>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/0636e65c825e810ad97f154606365870152d402f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-19571>

HTML: <https://flawdb.com/CVE-2026-19571> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-19571>
