ZeroHour

CVE-2026-80680

niche

Use-after-free in Linux kernel amd-mp2 I2C driver on adapter add failure

CVSS 3.1
7.8 high
EPSS
<1%p3
Published
()
Modified
AI analysis

The Linux kernel's amd-mp2 PCI driver for AMD's MP2 I2C controller registers a callback pointing to the platform I2C context before the I2C adapter is added; if i2c_add_adapter() fails during probe, the context memory is freed while the PCI driver's IRQ and system-sleep callbacks still hold a stale pointer, resulting in a use-after-free dereference. The flaw is triggered on the probe error path when adapter registration fails, after which any interrupt or system-sleep callback invocation can dereference the dangling pointer, potentially causing kernel memory corruption or a crash. An attacker on the local system could potentially gain denial of service or, per the CVSS scoring (7.8 high, local vector, low privileges), elevated impact through kernel memory corruption. Only Linux systems running on AMD hardware equipped with the MP2 I2C controller, using kernels that include the flawed amd-mp2 driver, are affected. There is no known exploitation in the wild, no public proof-of-concept, and EPSS estimates only a 0.1% probability of exploitation within 30 days.

What to do: Update affected systems to a kernel build that includes the upstream fix, which unregisters the MP2 callback before returning the adapter-registration error; no specific fixed version numbers are available in this data, so check your distribution's kernel advisory. On AMD systems, check dmesg/kernel logs for amd-mp2 or i2c_add_adapter failure messages to identify systems that hit the vulnerable error path. No mitigation is known beyond applying the kernel patch.

Affected
Linux kernel (i2c amd-mp2 driver for AMD MP2 I2C controllers)
Estimated exposure
nicheLikely low tens of thousands to low hundreds of thousands of AMD-based Linux systems; exact count unknown — The flawed driver applies only to AMD x86 platforms with the MP2 I2C controller (a subset of AMD laptops and embedded systems) and the bug only manifests when i2c_add_adapter() fails during probe, a rare error path; no public scan or…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.