Skip to contentSkip to conversation

CVE-2023-53833: drm/i915: Fix NULL ptr deref by checking new_crtc_state

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

drm/i915: Fix NULL ptr deref by checking new_crtc_state

intel_atomic_get_new_crtc_state can return NULL, unless crtc state wasn't obtained previously with intel_atomic_get_crtc_state, so we must check it for NULLness here, just as in many other places, where we can't guarantee that intel_atomic_get_crtc_state was called.
We are currently getting NULL ptr deref because of that, so this fix was confirmed to help.

(cherry picked from commit 1d5b09f8daf859247a1ea65b0d732a24d88980d8)

The Linux kernel CVE team has assigned CVE-2023-53833 to this issue.

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

	Issue introduced in 5.16 with commit 74a75dc908692dd0548209004e53832c02433c0c and fixed in 6.1.30 with commit dbf25cc21beff4fd2e730573845a266504b21bb2
	Issue introduced in 5.16 with commit 74a75dc908692dd0548209004e53832c02433c0c and fixed in 6.3.4 with commit 8b3c0d2d1685ba40b0af4ee1f8d8824a73870f88
	Issue introduced in 5.16 with commit 74a75dc908692dd0548209004e53832c02433c0c and fixed in 6.4 with commit a41d985902c153c31c616fe183cf2ee331e95ecb

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-2023-53833

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/i915/display/intel_atomic_plane.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/dbf25cc21beff4fd2e730573845a266504b21bb2
	https://git.kernel.org/stable/c/8b3c0d2d1685ba40b0af4ee1f8d8824a73870f88
	https://git.kernel.org/stable/c/a41d985902c153c31c616fe183cf2ee331e95ecb