[PATCH v2] drm/amd/display:fix a Null pointer dereference vulnerability
Krzysztof Kozlowski
krzk at kernel.org
Tue Jul 15 10:44:40 UTC 2025
On 04/07/2025 05:16, jackysliu wrote:
> From: jackysliu <Security at tencent.com>
>
> A null pointer dereference vulnerability exists in the AMD display driver's
> (DC module) cleanup function dc_destruct().
> When display control context (dc->ctx) construction fails
> (due to memory allocation failure), this pointer remains NULL.
> During subsequent error handling when dc_destruct() is called,
> there's no NULL check before dereferencing the perf_trace member
> (dc->ctx->perf_trace),
> causing a kernel null pointer dereference crash
>
> Signed-off-by: jackysliu <Security at tencent.com>
> ---
> drivers/gpu/drm/amd/display/dc/core/dc.c | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
You should disclose that you used some AI tool for that... and that
other report(s) was really fake finding. People should know you
generated it with AI, so they could make informed decision whether to
even allocate time here.
Best regards,
Krzysztof
More information about the dri-devel
mailing list