Skip to contentSkip to conversation

CVE-2026-98148: drm/gud: validate GUD_ROTATION_0 is present in supported rotations

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 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/gud: validate GUD_ROTATION_0 is present in supported rotations

The rotation argument to drm_plane_create_rotation_property() is set to DRM_MODE_ROTATE_0, and the device reported rotation bitmask is used as the supported_rotations argument. The driver never validates that GUD_ROTATION_0 is present, so a device that omits it from its GUD_PROPERTY_ROTATION triggers the
WARN_ON(rotation & ~supported_rotations) in drm_plane_create_rotation_property()

Fix this by skipping the creation of rotation property if the device doesn't have the GUD_ROTATION_0 bit

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

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

	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.18.53 with commit b2cd682324b889011874cf844b7c7efa97c97296
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.2.7 with commit 876b33d8a9a00e9d4bbcbb7f55ad2c05974850de
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.3-rc2 with commit cb732d027aa18e1fcf9d2797f47d20b179ebc59c

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

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/gud/gud_drv.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/b2cd682324b889011874cf844b7c7efa97c97296
	https://git.kernel.org/stable/c/876b33d8a9a00e9d4bbcbb7f55ad2c05974850de
	https://git.kernel.org/stable/c/cb732d027aa18e1fcf9d2797f47d20b179ebc59c