drm/amd/display: Fix DM I2C teardown race
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6970ec944567f109ac4240f9aea58158ee8a18cd, Kernel 8ee385305e8902fa6fbfd66b5a112238292567b6 and Kernel e4ae30a12aa95942814957d8bc1ce7366a7107d7.
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix DM I2C teardown race DM I2C adapters can remain visible to userspace while DM teardown is already in progress. A concurrent i2c-dev transfer may then enter amdgpu_dm_i2c_xfer() after the backing DM state has been torn down, leading to a NULL pointer dereference. Create a devres group around the DM I2C adapter lifetime and release it at the start of dm_hw_fini(), before HPD, IRQ, and DM state are torn down. This removes the I2C adapters first and waits for in-flight users to drain before the structures used by amdgpu_dm_i2c_xfer() disappear. This fixes a teardown ordering race seen during device removal: BUG: kernel NULL pointer dereference RIP: amdgpu_dm_i2c_xfer+0x122/0x1c0 [amdgpu] Call Trace: __i2c_transfer i2c_transfer i2cdev_ioctl_rdwr
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 <6970ec944567f109ac4240f9aea58158ee8a18cd, >=5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 <8ee385305e8902fa6fbfd66b5a112238292567b6, >=5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 <e4ae30a12aa95942814957d8bc1ce7366a7107d7 | 6970ec944567f109ac4240f9aea58158ee8a18cd, 8ee385305e8902fa6fbfd66b5a112238292567b6, e4ae30a12aa95942814957d8bc1ce7366a7107d7 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket