drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c · < 73efd2a611b62fee71a7b7f27d9d08bb60da8a72| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
This commit addresses a null pointer dereference issue in the `commit_planes_for_stream` function at line 4140. The issue could occur when `top_pipe_to_program` is null.
The fix adds a check to ensure `top_pipe_to_program` is not null before accessing its stream_res. This prevents a null pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:4140 commit_planes_for_stream() error: we previously assumed 'top_pipe_to_program' could be null (see line 3906)
From the CVE record · Linux
The Linux kernel’s AMD display driver can dereference a null `top_pipe_to_program` pointer in `commit_planes_for_stream`. The fix checks the pointer before accessing it. The input does not establish an attacker action, access requirements, or user-interaction requirements.
Engineers running Linux kernels with the AMD display driver should check their versions; affected versions are not specified.