Linux
drm/exynos: vidi: use priv->vidi_dev for ctx lookup in vidi_connection_ioctl()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < 2987642c5213508c6c9e718324c0d5289a92c474
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < 65d1213baffa363f2eb1117b1dc7acc573b890f8
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < 875fa28690e93ed5296c31d3344556c6bb867234
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < 21ca24ba51a2c28bcc4df9d7e5a40b0eb66ab76d
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < e1aed617eb80b49eac2f8c7bb7a0990f641dd59b
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < b5fc86d753dd4c281a943b92f0eef02d31af03d7
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < a540f767642f75240a6c35f6a65b69e44cfcea9d
- >= cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322, < d3968a0d85b211e197f2f4f06268a7031079e0d0
Fixed in 2987642c5213508c6c9e718324c0d5289a92c474, 65d1213baffa363f2eb1117b1dc7acc573b890f8, 875fa28690e93ed5296c31d3344556c6bb867234, 21ca24ba51a2c28bcc4df9d7e5a40b0eb66ab76d, e1aed617eb80b49eac2f8c7bb7a0990f641dd59b, b5fc86d753dd4c281a943b92f0eef02d31af03d7, a540f767642f75240a6c35f6a65b69e44cfcea9d, d3968a0d85b211e197f2f4f06268a7031079e0d0
- 4.3
Fixed in 0, 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.114, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to 2987642c5213508c6c9e718324c0d5289a92c474 or 65d1213baffa363f2eb1117b1dc7acc573b890f8 or 875fa28690e93ed5296c31d3344556c6bb867234 or 21ca24ba51a2c28bcc4df9d7e5a40b0eb66ab76d or e1aed617eb80b49eac2f8c7bb7a0990f641dd59b or b5fc86d753dd4c281a943b92f0eef02d31af03d7 or a540f767642f75240a6c35f6a65b69e44cfcea9d or d3968a0d85b211e197f2f4f06268a7031079e0d0 or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.167 or 6.6.130 or 6.12.114 or 6.18.14 or 6.19.4 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.