2.4low
DesignWare I2C target driver can be wedged into a permanent stuck state by an on-bus master (DoS)
- Severity
- 2.4low CVSS:3.1 by zephyr
- Exploit likelihood
- 0.24% (higher than 9% of CVEs)
- Published
- Last changed
- Assigned by
- zephyr
Description
In the Synopsys DesignWare I2C driver (drivers/i2c/i2c_dw.c) operating in target/slave mode, the rx_full interrupt handler gates the write_requested() callback on dw->state != CMD_SEND, and dw->state is only reset to READY on a STOP interrupt. The START_DET interrupt, whose handler in i2c_dw_slave_read_clear_intr_bits() would reset the state on every (re)START, was never added to the enabled interrupt mask in i2c_dw_slave_register(), so that recovery path was dead code. As a result, if the STOP interrupt is lost (bus glitch/reset, or a concurrent master driving STOP) or the bus master issues a legal WRITE-repeated-START-WRITE sequence with the same direction, the driver remains in CMD_SEND permanently and never invokes write_requested() again for the life of the target. An I2C master on the same physical bus can deliberately trigger this, causing the I2C target function to malfunction for all subsequent write transactions and desynchronizing consumer framing state (e.g. MCTP-over-I2C), a recoverable-by-reset denial of service of the target peripheral. The fix unmasks START_DET so the state is reset at every bus (re)START. Impact is availability-only over a local board-level bus; no memory corruption results in the in-tree consumer, whose per-byte buffer write is independently bounds-checked.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zephyr | from 4.0.0 before 4.3.2, from 4.4.0 before 4.4.2 | CVE List |
| zephyrproject zephyr | from 4.0.0 before 4.5.0 | NVD |
All scores
| zephyr | 2.4low CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 4.6medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Synopsys DesignWare I2C driver (drivers/i2c/i2c_dw.c) operating in target/slave mode, the rx_full interrupt handler gates the write_requested() callback on dw->state != CMD_SEND, and dw->state is only reset to READY on a STOP interrupt. The START_DET interrupt, whose handler in i2c_dw_slave_read_clear_intr_bits() would reset the state on every (re)START, was never added to the enabled interrupt mask in i2c_dw_slave_register(), so that recovery path was dead code. As a result, if the STOP interrupt is lost (bus glitch/reset, or a concurrent master driving STOP) or the bus master issues a legal WRITE-repeated-START-WRITE sequence with the same direction, the driver remains in CMD_SEND permanently and never invokes write_requested() again for the life of the target. An I2C master on the same physical bus can deliberately trigger this, causing the I2C target function to malfunction for all subsequent write transactions and desynchronizing consumer framing state (e.g. MCTP-over-I2C), a recoverable-by-reset denial of service of the target peripheral. The fix unmasks START_DET so the state is reset at every bus (re)START. Impact is availability-only over a local board-level bus; no memory corruption results in the in-tree consumer, whose per-byte buffer write is independently bounds-checked.
NVD (es)
En el controlador I2C Synopsys DesignWare (drivers/i2c/i2c_dw.c) que opera en modo destino/esclavo, el gestor de interrupciones rx_full restringe la llamada de retorno write_requested() cuando dw -> state != CMD_SEND, y dw -> state solo se restablece a READY en una interrupción STOP. La interrupción START_DET, cuyo gestor en i2c_dw_slave_read_clear_intr_bits() restablecería el estado en cada (re)INICIO, nunca se añadió a la máscara de interrupciones habilitadas en i2c_dw_slave_register(), por lo que esa ruta de recuperación era código muerto. Como resultado, si la interrupción STOP se pierde (falla/reinicio del bus, o un maestro concurrente que activa STOP) o el maestro del bus emite una secuencia legal WRITE-repeated-START-WRITE con la misma dirección, el controlador permanece en CMD_SEND permanentemente y nunca vuelve a invocar write_requested() durante la vida útil del destino. Un maestro I2C en el mismo bus físico puede provocar esto deliberadamente, haciendo que la función de destino I2C funcione incorrectamente para todas las transacciones de escritura posteriores y desincronizando el estado de encuadre del consumidor (p. ej., MCTP-over-I2C), una denegación de servicio del periférico de destino recuperable mediante reinicio. La solución desenmascara START_DET para que el estado se restablezca en cada (re)INICIO del bus. El impacto es solo en la disponibilidad a través de un bus local a nivel de placa; no se produce corrupción de memoria en el consumidor ’in-tree’, cuya escritura de búfer por byte se verifica de forma independiente en cuanto a límites.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10683 changed 2026-11-04 | CVE Terms of Use |
| NVD | CVE-2026-10683 changed 2026-11-04 | Public domain |