Skip to contentSkip to conversation

CVE-2026-90297: drm/sun4i: crtc: Propagate layer initialization error

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: crtc: Propagate layer initialization error

sun4i_crtc_init() returns plain NULL when layer initialization fails, while all its other error paths return an error pointer. The only caller, sun4i_tcon_bind(), checks the result with IS_ERR() and happily continues with tcon->crtc set to NULL. sun4i_rgb_init() and sun4i_lvds_init() then dereference it in drm_crtc_mask(), which oopses.

Return the error pointer instead.

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

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

	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 5.10.270 with commit aaf812960fb5ade24be7a1d8fea27a1ffc458c30
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 5.15.221 with commit e216d6168f25a69e5ae5b981ee73b3a860a46441
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 6.1.188 with commit 2bb3169788f8296c8fc1e0d4fa6f1c6367cd5829
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 6.6.157 with commit 1882112124a642de7571fbf354fa1929decbb3ef
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 6.12.110 with commit 8f32af44d43332c02198752e596df00659bf4354
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 6.18.52 with commit 65bc02fec98e4e1d7d59d86cf2ddf8fd73dacb89
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 7.2.6 with commit c0d3219ffd4c0d42295e0dc949856067b7818b71
	Issue introduced in 4.12 with commit dcd215801b0279f0a021516526cf7c0b67d5302e and fixed in 7.3-rc1 with commit 7061ff05ed4a3cf16e83f7e3ad09cbd212508a32

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

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_crtc.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/aaf812960fb5ade24be7a1d8fea27a1ffc458c30
	https://git.kernel.org/stable/c/e216d6168f25a69e5ae5b981ee73b3a860a46441
	https://git.kernel.org/stable/c/2bb3169788f8296c8fc1e0d4fa6f1c6367cd5829
	https://git.kernel.org/stable/c/1882112124a642de7571fbf354fa1929decbb3ef
	https://git.kernel.org/stable/c/8f32af44d43332c02198752e596df00659bf4354
	https://git.kernel.org/stable/c/65bc02fec98e4e1d7d59d86cf2ddf8fd73dacb89
	https://git.kernel.org/stable/c/c0d3219ffd4c0d42295e0dc949856067b7818b71
	https://git.kernel.org/stable/c/7061ff05ed4a3cf16e83f7e3ad09cbd212508a32