HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.16 % · centile 6 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
Rechercher sur…
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.
Références
- 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
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-76534
- GCVE · GCVE-0-2026-89622
Avis du CERT-FR
- CERTFR-2026-AVI-1289 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1253 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected 67a95c21463d066060b0f66d65a75d45bb386ffb < 198bf4a226229e36dfe254493a45c71c3ffc7e57 ; affected 67a95c21463d066060b0f66d65a75d45bb386ffb < bd146a8ff107c6d77e75597decbcd1df0d7900d6 ; affected 67a95c21463d066060b0f66d65a75d45bb386ffb < d6c6b293173c0ea87189501cbd77e8fa677814a1 ; affected 67a95c21463d066060b0f66d65a75d45bb386ffb < 03c34309eb1bce1b3b5f7c4a94b703f419120383 ; affected 67a95c21463d066060b0f66d65a75d45bb386ffb < 968546b676d992dd1da3e057d40598231f725996 ; affected 67a95c21463d066060b0f66d65a75d45bb386ffb < db2333f88729c8aae062cb171ed058725ff5c901 |
| Linux · Linux | affected 5.7 ; unaffected 0 < 5.7 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.111 ≤ 6.12.* ; unaffected 6.18.51 ≤ 6.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |