{"api_version":"1","generated_at":"2026-09-14T04:18:08+00:00","cve":"CVE-2026-89622","urls":{"html":"https://cve.report/CVE-2026-89622","api":"https://cve.report/api/cve/CVE-2026-89622.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-89622","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89622"},"summary":{"title":"HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: mcp2221: clear rxbuf after I2C/SMBus transfer completes\n\nmcp_i2c_smbus_read() stores the caller-supplied buffer pointer in\nmcp->rxbuf for the duration of a transfer but never clears it when the\ntransfer finishes or times out. Once the caller frees or reuses the\nbuffer, mcp->rxbuf becomes a dangling pointer. A delayed or spurious\nMCP2221_I2C_GET_DATA report can then drive mcp2221_raw_event() to\nmemcpy device data into the freed memory, causing a write\nuse-after-free.\n\nRoute all return paths through a single exit point that clears\nmcp->rxbuf and mcp->rxbuf_size, so that the existing !mcp->rxbuf guard\nin the raw_event handler can reject any report arriving after the\ntransfer has ended.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-11 20:19:47","updated_at":"2026-09-13 07:17:27"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/968546b676d992dd1da3e057d40598231f725996","name":"https://git.kernel.org/stable/c/968546b676d992dd1da3e057d40598231f725996","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/db2333f88729c8aae062cb171ed058725ff5c901","name":"https://git.kernel.org/stable/c/db2333f88729c8aae062cb171ed058725ff5c901","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/03c34309eb1bce1b3b5f7c4a94b703f419120383","name":"https://git.kernel.org/stable/c/03c34309eb1bce1b3b5f7c4a94b703f419120383","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-89622","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89622","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a95c21463d066060b0f66d65a75d45bb386ffb 03c34309eb1bce1b3b5f7c4a94b703f419120383 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a95c21463d066060b0f66d65a75d45bb386ffb 968546b676d992dd1da3e057d40598231f725996 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a95c21463d066060b0f66d65a75d45bb386ffb db2333f88729c8aae062cb171ed058725ff5c901 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.51 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.4 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"89622","cve":"CVE-2026-89622","epss":"0.001570000","percentile":"0.051900000","score_date":"2026-09-13","updated_at":"2026-09-14 00:18:01"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/hid/hid-mcp2221.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"03c34309eb1bce1b3b5f7c4a94b703f419120383","status":"affected","version":"67a95c21463d066060b0f66d65a75d45bb386ffb","versionType":"git"},{"lessThan":"968546b676d992dd1da3e057d40598231f725996","status":"affected","version":"67a95c21463d066060b0f66d65a75d45bb386ffb","versionType":"git"},{"lessThan":"db2333f88729c8aae062cb171ed058725ff5c901","status":"affected","version":"67a95c21463d066060b0f66d65a75d45bb386ffb","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/hid/hid-mcp2221.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.7"},{"lessThan":"5.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.51","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.51","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.4","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"5.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: mcp2221: clear rxbuf after I2C/SMBus transfer completes\n\nmcp_i2c_smbus_read() stores the caller-supplied buffer pointer in\nmcp->rxbuf for the duration of a transfer but never clears it when the\ntransfer finishes or times out. Once the caller frees or reuses the\nbuffer, mcp->rxbuf becomes a dangling pointer. A delayed or spurious\nMCP2221_I2C_GET_DATA report can then drive mcp2221_raw_event() to\nmemcpy device data into the freed memory, causing a write\nuse-after-free.\n\nRoute all return paths through a single exit point that clears\nmcp->rxbuf and mcp->rxbuf_size, so that the existing !mcp->rxbuf guard\nin the raw_event handler can reject any report arriving after the\ntransfer has ended."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - A local attacker can bind hid-mcp2221 by forging BUS_USB 04d8:00dd via UHID_CREATE2 on /dev/uhid (no hid_is_usb() guard), then issue I2C_RDWR/I2C_SMBUS reads on the resulting /dev/i2c-N so mcp_i2c_smbus_read() leaves mcp->rxbuf dangling; a malicious USB MCP2221 is only a lower-severity physical path.\nAC:L - The attacker controls both sides: they start the I2C/SMBus read that stores the bounce buffer in mcp->rxbuf, let mcp_i2c_smbus_read() return without clearing it (timeout or completed xfer), then inject a delayed MCP2221_I2C_GET_DATA report via UHID_INPUT so mcp2221_raw_event() memcpy's into the already-freed buffer.\nPR:L - Neither uhid_dev_create2() nor i2cdev_open() checks capabilities; access is DAC on /dev/uhid and /dev/i2c-*, which udev uaccess-tags for the seat user and which are commonly 0660 root:i2c on embedded/industrial MCP2221 systems, i.e. low privilege rather than real init-namespace root.\nUI:N - The attacker creates the uhid device, issues the I2C/SMBus read ioctl, and injects the delayed HID input report from their own process; no separate victim action is required.\nS:U - The write use-after-free corrupts host-kernel heap or returned SMBus stack under the kernel's own authority and is ordinary local privilege-escalation/DoS, with no VM escape, IOMMU bypass, or other cross-authority impact.\nC:H - mcp2221_raw_event() memcpy's attacker-controlled HID payload into a freed I2C bounce buffer (up to 60 bytes per report, repeatable up to the attacker-chosen rxbuf_size of 8192 via I2C_RDWR); a write UAF of a sprayed slab object yields an arbitrary kernel read primitive.\nI:H - The same memcpy is a write use-after-free of attacker-controlled bytes into freed kernel memory; with heap spraying this is an arbitrary-write and control-flow hijack primitive, so integrity impact is High per UAF guidance.\nA:H - Writing into the freed i2c-dev bounce buffer or returned SMBus stack object can oops or panic the kernel even when not fully exploited, and the dangling mcp->rxbuf persists until the next read so the crash is retriggerable at will."}]}],"providerMetadata":{"dateUpdated":"2026-09-13T06:32:02.209Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/03c34309eb1bce1b3b5f7c4a94b703f419120383"},{"url":"https://git.kernel.org/stable/c/968546b676d992dd1da3e057d40598231f725996"},{"url":"https://git.kernel.org/stable/c/db2333f88729c8aae062cb171ed058725ff5c901"}],"title":"HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-89622","datePublished":"2026-09-11T19:45:20.090Z","dateReserved":"2026-09-11T19:38:34.737Z","dateUpdated":"2026-09-13T06:32:02.209Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-11 20:19:47","lastModifiedDate":"2026-09-13 07:17:27","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"89622","Ordinal":"1","Title":"HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes","CVE":"CVE-2026-89622","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"89622","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: mcp2221: clear rxbuf after I2C/SMBus transfer completes\n\nmcp_i2c_smbus_read() stores the caller-supplied buffer pointer in\nmcp->rxbuf for the duration of a transfer but never clears it when the\ntransfer finishes or times out. Once the caller frees or reuses the\nbuffer, mcp->rxbuf becomes a dangling pointer. A delayed or spurious\nMCP2221_I2C_GET_DATA report can then drive mcp2221_raw_event() to\nmemcpy device data into the freed memory, causing a write\nuse-after-free.\n\nRoute all return paths through a single exit point that clears\nmcp->rxbuf and mcp->rxbuf_size, so that the existing !mcp->rxbuf guard\nin the raw_event handler can reject any report arriving after the\ntransfer has ended.","Type":"Description","Title":"HID: mcp2221: clear rxbuf after I2C/SMBus transfer completes"}]}}}