Skip to contentSkip to conversation

CVE-2024-53200: drm/amd/display: Fix null check for pipe_ctx->plane_state in hwss_setup_dpp

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 27, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix null check for pipe_ctx->plane_state in hwss_setup_dpp

This commit addresses a null pointer dereference issue in hwss_setup_dpp(). The 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.

The Linux kernel CVE team has assigned CVE-2024-53200 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.5 with commit 0baae624630788862bbd654741929007971e9d5b and fixed in 6.6.64 with commit 020002c76147ecfdafe95c44abd3240e216b6316
	Issue introduced in 6.5 with commit 0baae624630788862bbd654741929007971e9d5b and fixed in 6.11.11 with commit 0dd3d1de7a5957804ccd58c1b252f9e34710e3f6
	Issue introduced in 6.5 with commit 0baae624630788862bbd654741929007971e9d5b and fixed in 6.12.2 with commit 95792a18da0795300e15075ac05d1915e9066999
	Issue introduced in 6.5 with commit 0baae624630788862bbd654741929007971e9d5b and fixed in 6.13-rc1 with commit 2bc96c95070571c6c824e0d4c7783bee25a37876

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-2024-53200

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_hw_sequencer.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/020002c76147ecfdafe95c44abd3240e216b6316
	https://git.kernel.org/stable/c/0dd3d1de7a5957804ccd58c1b252f9e34710e3f6
	https://git.kernel.org/stable/c/95792a18da0795300e15075ac05d1915e9066999
	https://git.kernel.org/stable/c/2bc96c95070571c6c824e0d4c7783bee25a37876