CVE-2026-98783: drm/mediatek: Add missing IS_ERR check for ovl_adaptor platform device
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/mediatek: Add missing IS_ERR check for ovl_adaptor platform device
platform_device_register_data() can fail and return an ERR_PTR, but the return value is used without checking, leading to an invalid pointer being stored in ddp_comp[].dev and passed to component_match_add() and mtk_ddp_comp_init(), which could result in a kernel crash.
Add an IS_ERR() check to jump to the error handling path on failure.
The Linux kernel CVE team has assigned CVE-2026-98783 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 0d9eee9118b77e51eeafc5bf4d008fac97035d56 and fixed in 6.12.113 with commit 4acac370aad2d4895a82f40b2f03e9ef70eecaa6 Issue introduced in 6.4 with commit 0d9eee9118b77e51eeafc5bf4d008fac97035d56 and fixed in 6.18.56 with commit 88f8a92dcb0cb154774595dee7226458de4cbd38 Issue introduced in 6.4 with commit 0d9eee9118b77e51eeafc5bf4d008fac97035d56 and fixed in 7.2.10 with commit aeef8a8537bcfb26689edb36ed905b8b2873001c Issue introduced in 6.4 with commit 0d9eee9118b77e51eeafc5bf4d008fac97035d56 and fixed in 7.3-rc6 with commit bce7698e2e6565bb765bd0522337f29f5f312624
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-98783
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/mediatek/mtk_drm_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/4acac370aad2d4895a82f40b2f03e9ef70eecaa6 https://git.kernel.org/stable/c/88f8a92dcb0cb154774595dee7226458de4cbd38 https://git.kernel.org/stable/c/aeef8a8537bcfb26689edb36ed905b8b2873001c https://git.kernel.org/stable/c/bce7698e2e6565bb765bd0522337f29f5f312624