5.5medium
i2c: imx: preserve error state in block data length handler
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: i2c: imx: preserve error state in block data length handler When a block read returns an invalid length, zero or >I2C_SMBUS_BLOCK_MAX, the length handler sets the state to IMX_I2C_STATE_FAILED. However, i2c_imx_master_isr() unconditionally overwrites this with IMX_I2C_STATE_READ_CONTINUE, causing an endless read loop that overruns buffers and crashes the system. Guard the state transition to preserve error states set by the length handler.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5f5c2d4579ca6836f5604cca979debd68ecfe23f before 3f9b508b3eecc00a243edf320bd83834d6a9b482, from 5f5c2d4579ca6836f5604cca979debd68ecfe23f before b126097b0327437048bd045a0e4d273dea2910dd, 6.13 Not affected: before 6.13, from 6.18.10 up to 6.18.*, from 6.19 up to * | CVE List |
| linux linux_kernel | from 6.13 before 6.18.10, 6.19 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: i2c: imx: preserve error state in block data length handler When a block read returns an invalid length, zero or >I2C_SMBUS_BLOCK_MAX, the length handler sets the state to IMX_I2C_STATE_FAILED. However, i2c_imx_master_isr() unconditionally overwrites this with IMX_I2C_STATE_READ_CONTINUE, causing an endless read loop that overruns buffers and crashes the system. Guard the state transition to preserve error states set by the length handler.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: i2c: imx: preservar el estado de error en el manejador de longitud de datos de bloque Cuando una lectura de bloque devuelve una longitud no válida, cero o >I2C_SMBUS_BLOCK_MAX, el manejador de longitud establece el estado a IMX_I2C_STATE_FAILED. Sin embargo, i2c_imx_master_isr() sobrescribe incondicionalmente esto con IMX_I2C_STATE_READ_CONTINUE, causando un bucle de lectura infinito que desborda los búferes y bloquea el sistema. Proteger la transición de estado para preservar los estados de error establecidos por el manejador de longitud.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23197 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-23197 changed 2026-06-17 | Public domain |