[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025040135-CVE-2025-21941-8240@gregkh>
Date: Tue, 1 Apr 2025 16:40:05 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21941: drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params
Null pointer dereference issue could occur when pipe_ctx->plane_state
is null. The fix adds a check to ensure 'pipe_ctx->plane_state' is not
null before accessing. This prevents a null pointer dereference.
Found by code review.
(cherry picked from commit 63e6a77ccf239337baa9b1e7787cde9fa0462092)
The Linux kernel CVE team has assigned CVE-2025-21941 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.15 with commit 3be5262e353b8ab97c528bfc7d0dd3c820e4ba27 and fixed in 6.1.131 with commit c1e54752dc12e90305eb0475ca908f42f5b369ca
Issue introduced in 4.15 with commit 3be5262e353b8ab97c528bfc7d0dd3c820e4ba27 and fixed in 6.6.83 with commit 3b3c2be58d5275aa59d8b4810a59f173f2f5bac1
Issue introduced in 4.15 with commit 3be5262e353b8ab97c528bfc7d0dd3c820e4ba27 and fixed in 6.12.19 with commit e0345c3478f185ca840daac7f08a1fcd4ebec3e9
Issue introduced in 4.15 with commit 3be5262e353b8ab97c528bfc7d0dd3c820e4ba27 and fixed in 6.13.7 with commit 3748fad09d89e9a5290e1738fd6872a79f794743
Issue introduced in 4.15 with commit 3be5262e353b8ab97c528bfc7d0dd3c820e4ba27 and fixed in 6.14 with commit 374c9faac5a763a05bc3f68ad9f73dab3c6aec90
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-21941
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/c1e54752dc12e90305eb0475ca908f42f5b369ca
https://git.kernel.org/stable/c/3b3c2be58d5275aa59d8b4810a59f173f2f5bac1
https://git.kernel.org/stable/c/e0345c3478f185ca840daac7f08a1fcd4ebec3e9
https://git.kernel.org/stable/c/3748fad09d89e9a5290e1738fd6872a79f794743
https://git.kernel.org/stable/c/374c9faac5a763a05bc3f68ad9f73dab3c6aec90
Powered by blists - more mailing lists