drm/amd/display: fix a NULL pointer dereference in amdgpu_dm_i2c_xfer()
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/amd/display: fix a NULL pointer dereference in amdgpu_dm_i2c_xfer()
When ddc_service_construct() is called, it explicitly checks both the link type and whether there is something on the link which will dictate whether the pin is marked as hw_supported.
If the pin isn't set or the link is not set (such as from unloading/reloading amdgpu in an IGT test) then fail the amdgpu_dm_i2c_xfer() call.
From the CVE record · Linux
The Linux kernel's amdgpu_dm_i2c_xfer() can encounter a NULL pointer dereference when the pin or link is unset, such as during amdgpu unloading and reloading in an IGT test. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel with AMD display support should check their installations; affected versions are not specified.