i2c: amd-mp2: Unregister callback on adapter add failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cf107c5983dc70fcf932a305581a5f976d908ff1, Kernel 1883a09a37fed497b9efacf736c23624a472246b, Kernel 2f7789b3a9628819ebf90bcba8f9da3c139f8687 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=529766e0a0114438887382a68d97341fbf8349fb <cf107c5983dc70fcf932a305581a5f976d908ff1, >=529766e0a0114438887382a68d97341fbf8349fb <1883a09a37fed497b9efacf736c23624a472246b, >=529766e0a0114438887382a68d97341fbf8349fb <2f7789b3a9628819ebf90bcba8f9da3c139f8687, >=529766e0a0114438887382a68d97341fbf8349fb <4786d4d70dcd1e6b7e044f2348e00f201947b69c, >=529766e0a0114438887382a68d97341fbf8349fb <82048795242f04275a3f49ffc66ad851b6120954, >=529766e0a0114438887382a68d97341fbf8349fb <8bf719659406e4a1b56d441e0c7da2085d891d96, >=529766e0a0114438887382a68d97341fbf8349fb <9142a3dcff0d80a3a24ce159aee19ddc869d9784, >=529766e0a0114438887382a68d97341fbf8349fb <b7c2c5c8868737926410b93d1223ada17625ead3, =5.2 | cf107c5983dc70fcf932a305581a5f976d908ff1, 1883a09a37fed497b9efacf736c23624a472246b, 2f7789b3a9628819ebf90bcba8f9da3c139f8687, 4786d4d70dcd1e6b7e044f2348e00f201947b69c, 82048795242f04275a3f49ffc66ad851b6120954, 8bf719659406e4a1b56d441e0c7da2085d891d96, 9142a3dcff0d80a3a24ce159aee19ddc869d9784, b7c2c5c8868737926410b93d1223ada17625ead3 |
| linux-kernel: Kernel | >=5.16.0 <6.1.183, >=5.2.0 <5.10.265, >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.151, >=6.7.0 <6.12.103, >=5.11.0 <5.15.216 | 6.1.183, 5.10.265, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.15.216 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket