Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 to < 8ee385305e8902fa6fbfd66b5a112238292567b6affected5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 to < 6970ec944567f109ac4240f9aea58158ee8a18cdaffected5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 to < e4ae30a12aa95942814957d8bc1ce7366a7107d7affected
Linux Linux
Default version status: affected
6.18affected0 to < 6.18unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected