Skip to contentSkip to conversation

CVE-2026-53135: drm/amd/display: Fix NULL deref and buffer over-read in SDP debugfs

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 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/amd/display: Fix NULL deref and buffer over-read in SDP debugfs

[Why & How]
dp_sdp_message_debugfs_write() dereferences connector->base.state->crtc without checking for NULL. A connector can be connected but not bound to any CRTC (e.g. after hot-plug before the next atomic commit), causing a kernel crash when writing to the sdp_message debugfs node.

The function also ignores the user-provided size argument and always passes 36 bytes to copy_from_user(), reading past the user buffer when size < 36.

Fix both issues by:
- Returning -ENODEV when connector->base.state or state->crtc is NULL
- Clamping write_size to min(size, sizeof(data))

(cherry picked from commit 6ab4c36a522842ff70474a1c0af2e40e50fc8300)

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

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

	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 5.10.259 with commit ee9cfcf77a8e8af637396dc00966df5f701e661c
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 5.15.210 with commit b781f90a9528555c709e59789550893581ef0be4
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 6.1.176 with commit a2de1d71891a038a9346b2c1a72b88c8350f2479
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 6.6.143 with commit 7fc4fab4acc307ad2903312c195872b2953d32c3
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 6.12.94 with commit 7ae95c0275c330b5dbae806f8e431720edad776f
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 6.18.36 with commit bb6f705b73b5f191f14ad004e2c8c4b615806187
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 7.0.13 with commit c90954cdea4d6998ec345de0d840d030c145b89e
	Issue introduced in 5.2 with commit c7ba3653e9773256b2b08508a2ed2ca28ea7566b and fixed in 7.1 with commit adf67034b1f61f7119295208085bfd43f85f56af

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-53135

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/amdgpu_dm/amdgpu_dm_debugfs.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/ee9cfcf77a8e8af637396dc00966df5f701e661c
	https://git.kernel.org/stable/c/b781f90a9528555c709e59789550893581ef0be4
	https://git.kernel.org/stable/c/a2de1d71891a038a9346b2c1a72b88c8350f2479
	https://git.kernel.org/stable/c/7fc4fab4acc307ad2903312c195872b2953d32c3
	https://git.kernel.org/stable/c/7ae95c0275c330b5dbae806f8e431720edad776f
	https://git.kernel.org/stable/c/bb6f705b73b5f191f14ad004e2c8c4b615806187
	https://git.kernel.org/stable/c/c90954cdea4d6998ec345de0d840d030c145b89e
	https://git.kernel.org/stable/c/adf67034b1f61f7119295208085bfd43f85f56af