# CVE-2026-89622: HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-09-11T19:45:20.090Z
- Modified: 2026-10-30T13:20:22.737Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes

mcp_i2c_smbus_read() stores the caller-supplied buffer pointer in
mcp->rxbuf for the duration of a transfer but never clears it when the
transfer finishes or times out. Once the caller frees or reuses the
buffer, mcp->rxbuf becomes a dangling pointer. A delayed or spurious
MCP2221_I2C_GET_DATA report can then drive mcp2221_raw_event() to
memcpy device data into the freed memory, causing a write
use-after-free.

Route all return paths through a single exit point that clears
mcp->rxbuf and mcp->rxbuf_size, so that the existing !mcp->rxbuf guard
in the raw_event handler can reject any report arriving after the
transfer has ended.

(As written by CVE List.)

## Affected

- Linux Linux: from 67a95c21463d066060b0f66d65a75d45bb386ffb before 198bf4a226229e36dfe254493a45c71c3ffc7e57; from 67a95c21463d066060b0f66d65a75d45bb386ffb before bd146a8ff107c6d77e75597decbcd1df0d7900d6; from 67a95c21463d066060b0f66d65a75d45bb386ffb before d6c6b293173c0ea87189501cbd77e8fa677814a1; from 67a95c21463d066060b0f66d65a75d45bb386ffb before 03c34309eb1bce1b3b5f7c4a94b703f419120383; from 67a95c21463d066060b0f66d65a75d45bb386ffb before 968546b676d992dd1da3e057d40598231f725996; from 67a95c21463d066060b0f66d65a75d45bb386ffb before db2333f88729c8aae062cb171ed058725ff5c901; 5.7 (not affected: before 5.7; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/198bf4a226229e36dfe254493a45c71c3ffc7e57>
- <https://git.kernel.org/stable/c/bd146a8ff107c6d77e75597decbcd1df0d7900d6>
- <https://git.kernel.org/stable/c/d6c6b293173c0ea87189501cbd77e8fa677814a1>
- <https://git.kernel.org/stable/c/03c34309eb1bce1b3b5f7c4a94b703f419120383>
- <https://git.kernel.org/stable/c/968546b676d992dd1da3e057d40598231f725996>
- <https://git.kernel.org/stable/c/db2333f88729c8aae062cb171ed058725ff5c901>

## Sources

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

---

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