Skip to contentSkip to conversation

CVE-2026-53066: drm/sun4i: backend: fix error pointer dereference

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

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/sun4i: backend: fix error pointer dereference

The function drm_atomic_get_plane_state() can return an error pointer and is not checked for it. Add error pointer check.

Detected by Smatch:
drivers/gpu/drm/sun4i/sun4i_backend.c:496 sun4i_backend_atomic_check() error:
'plane_state' dereferencing possible ERR_PTR()

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

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

	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 6.1.175 with commit ea51fd96aca01381e8f1ac0c671a57b7619193bb
	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 6.6.141 with commit cf615b90a11a39a28e313be5e508e94bcde72016
	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 6.12.91 with commit 779c2f10743fc021f2f0ebe2b188cadfb973c5e4
	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 6.18.33 with commit 47038159c559824f4dbfb5b0d87b9b3416663372
	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 7.0.10 with commit e9bef62f1bb9fcb38223730657af20f4c6283c16
	Issue introduced in 4.17 with commit 96180dde23b799272ab2e7d47210c8840799d0d2 and fixed in 7.1 with commit 06277983eca4a31d3c2114fa33d99a6e82484b11

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

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/sun4i/sun4i_backend.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/ea51fd96aca01381e8f1ac0c671a57b7619193bb
	https://git.kernel.org/stable/c/cf615b90a11a39a28e313be5e508e94bcde72016
	https://git.kernel.org/stable/c/779c2f10743fc021f2f0ebe2b188cadfb973c5e4
	https://git.kernel.org/stable/c/47038159c559824f4dbfb5b0d87b9b3416663372
	https://git.kernel.org/stable/c/e9bef62f1bb9fcb38223730657af20f4c6283c16
	https://git.kernel.org/stable/c/06277983eca4a31d3c2114fa33d99a6e82484b11