Skip to contentSkip to conversation

CVE-2026-45956: drm/exynos: vidi: use priv->vidi_dev for ctx lookup in vidi_connection_ioctl()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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/exynos: vidi: use priv->vidi_dev for ctx lookup in vidi_connection_ioctl()

vidi_connection_ioctl() retrieves the driver_data from drm_dev->dev to obtain a struct vidi_context pointer. However, drm_dev->dev is the exynos-drm master device, and the driver_data contained therein is not the vidi component device, but a completely different device.

This can lead to various bugs, ranging from null pointer dereferences and garbage value accesses to, in unlucky cases, out-of-bounds errors, use-after-free errors, and more.

To resolve this issue, we need to store/delete the vidi device pointer in exynos_drm_private->vidi_dev during bind/unbind, and then read this exynos_drm_private->vidi_dev within ioctl() to obtain the correct struct vidi_context pointer.

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

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

	Fixed in 5.10.253 with commit 2987642c5213508c6c9e718324c0d5289a92c474
	Fixed in 5.15.203 with commit 65d1213baffa363f2eb1117b1dc7acc573b890f8
	Fixed in 6.1.167 with commit 875fa28690e93ed5296c31d3344556c6bb867234
	Fixed in 6.6.130 with commit 21ca24ba51a2c28bcc4df9d7e5a40b0eb66ab76d
	Fixed in 6.18.14 with commit b5fc86d753dd4c281a943b92f0eef02d31af03d7
	Fixed in 6.19.4 with commit a540f767642f75240a6c35f6a65b69e44cfcea9d
	Fixed in 7.0 with commit d3968a0d85b211e197f2f4f06268a7031079e0d0

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

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/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_vidi.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/2987642c5213508c6c9e718324c0d5289a92c474
	https://git.kernel.org/stable/c/65d1213baffa363f2eb1117b1dc7acc573b890f8
	https://git.kernel.org/stable/c/875fa28690e93ed5296c31d3344556c6bb867234
	https://git.kernel.org/stable/c/21ca24ba51a2c28bcc4df9d7e5a40b0eb66ab76d
	https://git.kernel.org/stable/c/b5fc86d753dd4c281a943b92f0eef02d31af03d7
	https://git.kernel.org/stable/c/a540f767642f75240a6c35f6a65b69e44cfcea9d
	https://git.kernel.org/stable/c/d3968a0d85b211e197f2f4f06268a7031079e0d0