CVE-2024-53060: drm/amdgpu: prevent NULL pointer dereference if ATIF is not supported

Description

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)

Classification

CVE ID: CVE-2024-53060

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.06% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/ce8a00a00e36f61f5a1e47734332420b68784c43
https://git.kernel.org/stable/c/8d7a28eca7553d35d4ce192fa1f390f2357df41b
https://git.kernel.org/stable/c/2ac7f253deada4d449559b65a1c1cd0a6f6f19b7
https://git.kernel.org/stable/c/27fc29b5376998c126c85cf9b15d9dfc2afc9cbe
https://git.kernel.org/stable/c/1a9f55ed5b512f510ccd21ad527d532e60550e80
https://git.kernel.org/stable/c/a613a392417532ca5aaf3deac6e3277aa7aaef2b
https://git.kernel.org/stable/c/b9d9881237afeb52eddd70077b7174bf17e2fa30

Timeline