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.
Published: 2026-08-28
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows a kernel use‑after‑free when the amd‑mp2 driver registers an I2C adapter. The driver stores a platform I2C context before the adapter registration succeeds. If i2c_add_adapter() fails, the probe returns and the context is freed, yet the driver’s IRQ and sleep callbacks may still dereference the stale pointer. This stale reference can corrupt kernel memory or cause a crash, potentially allowing an attacker to execute arbitrary code with kernel privileges.

Affected Systems

All Linux kernel installations that include the amd‑mp2 PCI driver and I2C subsystem. No specific kernel version is listed in the data, so any kernel containing the affected code path is at risk.

Risk and Exploitability

The exploit requires the ability to load the amd‑mp2 driver and trigger an adapter add that fails. This is a local kernel code execution vector; an attacker who can run privileged kernel code can take advantage of the use‑after‑free to gain higher privileges or crash the system. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score is not provided, but use‑after‑free in the kernel typically rates as high severity. The attack path relies on a failed adapter registration which is a scenario that can occur during driver initialization or dynamic device probing.

Generated by OpenCVE AI on August 28, 2026 at 09:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that contains the commit that removes the callback before returning on adapter registration failure
  • If an immediate kernel upgrade is not possible, disable the amd‑mp2 driver and any I2C devices that rely on it to eliminate the vulnerable code path
  • Implement monitoring or logging for i2c_add_adapter failures and enforce that no user‑space process can force adapter addition failures in a mixed‑mode environment

Generated by OpenCVE AI on August 28, 2026 at 09:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 28 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title i2c: amd-mp2: Unregister callback on adapter add failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-28T06:52:48.300Z

Reserved: 2026-08-26T14:34:25.783Z

Link: CVE-2026-80680

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T08:16:53.350

Modified: 2026-08-28T08:16:53.350

Link: CVE-2026-80680

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T10:00:06Z

Weaknesses