drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'
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 |
|
|
6.6.156.7.36.8In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'
In link_set_dsc_pps_packet(), 'struct display_stream_compressor *dsc' was dereferenced in a DC_LOGGER_INIT(dsc->ctx->logger); before the 'dsc' NULL pointer check.
Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_dpms.c:905 link_set_dsc_pps_packet() warn: variable dereferenced before check 'dsc' (see line 903)
From the CVE record · Linux
The Linux kernel's AMD display code dereferences a display stream compressor pointer before checking whether it is NULL in link_set_dsc_pps_packet(). The issue arises when that pointer is NULL; the input does not specify an attacker action, access requirements, or user interaction needed to trigger it.
Engineers running the Linux kernel with AMD display support should check whether their kernel includes the fix; affected versions are not specified.