drm/xe/i2c: Disable IRQ on unbind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/i2c: Disable IRQ on unbind
Currently, struct xe_i2c is freed before SGUnit IRQ is disabled in unbind path, leaving a potential UAF in case I2C IRQ is hit during this small window. Explicitly disable I2C IRQ in xe_i2c_remove() and fix this.
(cherry picked from commit 8ba5c8b8ab3fd362267c11df2cd5a90ee46f6e24)
From the CVE record · Linux
The Linux kernel's drm/xe/i2c unbind path can free an I2C structure before disabling its IRQ. If an I2C IRQ occurs in that window, it can trigger a use-after-free. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with the drm/xe/i2c component should check their versions; affected versions are not specified.