Skip to contentSkip to conversation

CVE-2026-80680: i2c: amd-mp2: Unregister callback on adapter add failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

i2c: amd-mp2: Unregister callback on adapter add failure

amd_mp2_register_cb() stores the platform I2C context in the MP2 PCI driver's callback table before the adapter is registered. If i2c_add_adapter() fails, probe returns and devres frees the context, but the PCI driver can still dereference the stale pointer from its IRQ and system-sleep callbacks.

Unregister the callback before returning the adapter registration error.

The Linux kernel CVE team has assigned CVE-2026-80680 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 5.10.265 with commit 9142a3dcff0d80a3a24ce159aee19ddc869d9784
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 5.15.216 with commit 2f7789b3a9628819ebf90bcba8f9da3c139f8687
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 6.1.183 with commit 4786d4d70dcd1e6b7e044f2348e00f201947b69c
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 6.6.151 with commit b7c2c5c8868737926410b93d1223ada17625ead3
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 6.12.103 with commit cf107c5983dc70fcf932a305581a5f976d908ff1
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 6.18.44 with commit 1883a09a37fed497b9efacf736c23624a472246b
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 7.1.8 with commit 8bf719659406e4a1b56d441e0c7da2085d891d96
	Issue introduced in 5.2 with commit 529766e0a0114438887382a68d97341fbf8349fb and fixed in 7.2 with commit 82048795242f04275a3f49ffc66ad851b6120954

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80680

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/i2c/busses/i2c-amd-mp2-plat.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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