{"id":"CVE-2026-80680","state":"PUBLISHED","title":"i2c: amd-mp2: Unregister callback on adapter add failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: amd-mp2: Unregister callback on adapter add failure\n\namd_mp2_register_cb() stores the platform I2C context in the MP2 PCI\ndriver's callback table before the adapter is registered. If\ni2c_add_adapter() fails, probe returns and devres frees the context,\nbut the PCI driver can still dereference the stale pointer from its IRQ\nand system-sleep callbacks.\n\nUnregister the callback before returning the adapter registration error.","publishedAt":"2026-08-28T06:52:48.300Z","updatedAt":"2026-08-29T06:22:06.613Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"9142a3dcff0d80a3a24ce159aee19ddc869d9784","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"2f7789b3a9628819ebf90bcba8f9da3c139f8687","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"4786d4d70dcd1e6b7e044f2348e00f201947b69c","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"b7c2c5c8868737926410b93d1223ada17625ead3","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"cf107c5983dc70fcf932a305581a5f976d908ff1","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"1883a09a37fed497b9efacf736c23624a472246b","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"8bf719659406e4a1b56d441e0c7da2085d891d96","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"82048795242f04275a3f49ffc66ad851b6120954","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-amd-mp2-plat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.151","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.103","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.44","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-amd-mp2-plat.c"]}],"references":["https://git.kernel.org/stable/c/9142a3dcff0d80a3a24ce159aee19ddc869d9784","https://git.kernel.org/stable/c/2f7789b3a9628819ebf90bcba8f9da3c139f8687","https://git.kernel.org/stable/c/4786d4d70dcd1e6b7e044f2348e00f201947b69c","https://git.kernel.org/stable/c/b7c2c5c8868737926410b93d1223ada17625ead3","https://git.kernel.org/stable/c/cf107c5983dc70fcf932a305581a5f976d908ff1","https://git.kernel.org/stable/c/1883a09a37fed497b9efacf736c23624a472246b","https://git.kernel.org/stable/c/8bf719659406e4a1b56d441e0c7da2085d891d96","https://git.kernel.org/stable/c/82048795242f04275a3f49ffc66ad851b6120954"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80680.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80680","state":"PUBLISHED","datePublished":"2026-08-28T06:52:48.300Z","dateUpdated":"2026-08-29T06:22:06.613Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.783Z"},"containers":{"cna":{"title":"i2c: amd-mp2: Unregister callback on adapter add failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: amd-mp2: Unregister callback on adapter add failure\n\namd_mp2_register_cb() stores the platform I2C context in the MP2 PCI\ndriver's callback table before the adapter is registered. If\ni2c_add_adapter() fails, probe returns and devres frees the context,\nbut the PCI driver can still dereference the stale pointer from its IRQ\nand system-sleep callbacks.\n\nUnregister the callback before returning the adapter registration error."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"9142a3dcff0d80a3a24ce159aee19ddc869d9784","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"2f7789b3a9628819ebf90bcba8f9da3c139f8687","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"4786d4d70dcd1e6b7e044f2348e00f201947b69c","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"b7c2c5c8868737926410b93d1223ada17625ead3","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"cf107c5983dc70fcf932a305581a5f976d908ff1","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"1883a09a37fed497b9efacf736c23624a472246b","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"8bf719659406e4a1b56d441e0c7da2085d891d96","versionType":"git"},{"version":"529766e0a0114438887382a68d97341fbf8349fb","status":"affected","lessThan":"82048795242f04275a3f49ffc66ad851b6120954","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-amd-mp2-plat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.151","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.103","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.44","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-amd-mp2-plat.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9142a3dcff0d80a3a24ce159aee19ddc869d9784"},{"url":"https://git.kernel.org/stable/c/2f7789b3a9628819ebf90bcba8f9da3c139f8687"},{"url":"https://git.kernel.org/stable/c/4786d4d70dcd1e6b7e044f2348e00f201947b69c"},{"url":"https://git.kernel.org/stable/c/b7c2c5c8868737926410b93d1223ada17625ead3"},{"url":"https://git.kernel.org/stable/c/cf107c5983dc70fcf932a305581a5f976d908ff1"},{"url":"https://git.kernel.org/stable/c/1883a09a37fed497b9efacf736c23624a472246b"},{"url":"https://git.kernel.org/stable/c/8bf719659406e4a1b56d441e0c7da2085d891d96"},{"url":"https://git.kernel.org/stable/c/82048795242f04275a3f49ffc66ad851b6120954"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is in AMD MP2 platform-driver probe teardown and PCI IRQ/system-sleep callbacks, reachable only via local suspend/resume or MP2 hardware interrupts on affected Ryzen laptops; there is no network, Bluetooth, or userspace I2C ioctl path to the stale callback table.\nAC:L - Once i2c_add_adapter() fails the dangling busses[] pointer is deterministic; an attacker can force that registration failure with memory pressure or driver rebind on modular builds, then reliably trigger the UAF through system suspend or MP2 IRQ without uncontrollable races.\nPR:L - After the flawed probe error path leaves the stale callback registered, local users can invoke system suspend via logind/systemctl without init-namespace root, and MP2 IRQs can fire from the already-enabled bus; per CNA guidance Low is used when probe/bind privilege gating is ambiguous.\nUI:N - Exploitation requires no separate victim action; the attacker triggers suspend themselves or relies on automatic MP2 hardware interrupts from an enabled bus, without needing another user to mount filesystems or open files.\nS:U - Impact is host-kernel heap corruption and privilege escalation from stale callback dereference; it does not cross VM, IOMMU, or sandbox security boundaries.\nC:H - The IRQ handler writes into freed amd_i2c_common memory and invokes cmd_completion from the stale object; this UAF provides attacker-influenced heap reuse and arbitrary kernel read primitives per kernel CNA UAF guidance.\nI:H - Suspend/resume and IRQ paths call function pointers through the freed amd_i2c_common structure, enabling control-flow hijack and heap corruption consistent with exploitable UAF write primitives.\nA:H - Stale callback dereference in IRQ or system-sleep paths causes kernel oops/panic and loss of availability; UAF heap corruption can also hang or crash affected AMD MP2 systems on every suspend or interrupt."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-29T06:22:06.613Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.10.265"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.15.216"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.6.151"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.103"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.1.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}