drm/amdgpu: prevent NULL pointer dereference if ATIF is not supported
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 975ede2a7bec52b5da1428829b3439667c8a234b · < a613a392417532ca5aaf3deac6e3277aa7aaef2b| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: prevent NULL pointer dereference if ATIF is not supported
acpi_evaluate_object() may return AE_NOT_FOUND (failure), which would result in dereferencing buffer.pointer (obj) while being NULL.
Although this case may be unrealistic for the current code, it is still better to protect against possible bugs.
Bail out also when status is AE_NOT_FOUND.
This fixes 1 FORWARD_NULL issue reported by Coverity Report: CID 1600951: Null pointer dereferences (FORWARD_NULL)
(cherry picked from commit 91c9e221fe2553edf2db71627d8453f083de87a1)
From the CVE record · Linux
The Linux kernel’s drm/amdgpu code may dereference a NULL pointer if ATIF is unsupported and an ACPI evaluation returns AE_NOT_FOUND. The input does not describe an attacker-controlled trigger, authentication requirements, or user interaction.
Engineers running Linux kernels with drm/amdgpu should check whether their kernel includes the fix; affected versions are not specified.