# CVE-2026-23197: i2c: imx: preserve error state in block data length handler

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-02-14T16:27:22.919Z
- Modified: 2026-06-17T10:21:04.830Z
- Weaknesses: CWE-476
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.13 before 6.18.10; 6.19

## References

- <https://git.kernel.org/stable/c/3f9b508b3eecc00a243edf320bd83834d6a9b482> (patch)
- <https://git.kernel.org/stable/c/b126097b0327437048bd045a0e4d273dea2910dd> (patch)

## Sources

- CVE List: [CVE-2026-23197](https://www.cve.org/CVERecord?id=CVE-2026-23197), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23197](https://nvd.nist.gov/vuln/detail/CVE-2026-23197), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23197 · Whole record: https://cve.day/CVE-2026-23197.json · Rebuilt by cve.day 2026-11-25T22:59:13.915Z
