Skip to contentSkip to conversation

CVE-2026-23366: drm/client: Do not destroy NULL modes

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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/client: Do not destroy NULL modes

'modes' in drm_client_modeset_probe may fail to kcalloc. If this occurs, we jump to 'out', calling modes_destroy on it, which dereferences it. This may result in a NULL pointer dereference in the error case. Prevent that.

The Linux kernel CVE team has assigned CVE-2026-23366 to this issue.

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

	Issue introduced in 6.16 with commit 3039cc0c0653c6e15130a8719c3237329a954670 and fixed in 6.18.17 with commit 4e3ca5f82346cc23c0a71f1ceb006115ff6b0745
	Issue introduced in 6.16 with commit 3039cc0c0653c6e15130a8719c3237329a954670 and fixed in 6.19.7 with commit 9aa3e33f0c7f2679ac599a09e3102c8f716a6321
	Issue introduced in 6.16 with commit 3039cc0c0653c6e15130a8719c3237329a954670 and fixed in 7.0-rc2 with commit c601fd5414315fc515f746b499110e46272e7243

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-2026-23366

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/drm_client_modeset.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/4e3ca5f82346cc23c0a71f1ceb006115ff6b0745
	https://git.kernel.org/stable/c/9aa3e33f0c7f2679ac599a09e3102c8f716a6321
	https://git.kernel.org/stable/c/c601fd5414315fc515f746b499110e46272e7243