drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
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: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
This commit adds a null check for 'stream_status' in the function 'planes_changed_for_existing_stream'. Previously, the code assumed 'stream_status' could be null, but did not handle the case where it was actually null. This could lead to a null pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:3784 planes_changed_for_existing_stream() error: we previously assumed 'stream_status' could be null (see line 3774)
From the CVE record · Linux
The Linux kernel's AMD display code could dereference a null stream_status pointer in planes_changed_for_existing_stream. The input does not establish how an attacker could trigger this condition or specify access, authentication, or user-interaction requirements.
Anyone running the Linux kernel should check whether their build includes the affected AMD display code; affected versions are not specified.