Skip to contentSkip to conversation

CVE-2026-98781: drm/mediatek: Fix pdev reference leak in mtk_drm_bind()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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/mediatek: Fix pdev reference leak in mtk_drm_bind()

When the device is not the mmsys master, mtk_drm_bind() returns early after taking a reference on the disp-mutex device via of_find_device_by_node(), without ever dropping it: mtk_drm_unbind() only puts mutex_dev for the master. Drop the reference before returning from the non-master path.

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

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

	Issue introduced in 6.4 with commit 1ef7ed48356cd5f9af2b7671956991b658d8c2ba and fixed in 6.12.113 with commit 4a8f9cad0fced77b36b297c67c42730c9cb32ec6
	Issue introduced in 6.4 with commit 1ef7ed48356cd5f9af2b7671956991b658d8c2ba and fixed in 6.18.56 with commit b84f1386d84b3a73f73ebb416a3f97c5d64a8ab3
	Issue introduced in 6.4 with commit 1ef7ed48356cd5f9af2b7671956991b658d8c2ba and fixed in 7.2.10 with commit cb3e0244514d13507c6048777e1d0277e611cf6c
	Issue introduced in 6.4 with commit 1ef7ed48356cd5f9af2b7671956991b658d8c2ba and fixed in 7.3-rc6 with commit 3753e34b73fcbe2a2edbe984614a008a261697ef

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

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/4a8f9cad0fced77b36b297c67c42730c9cb32ec6
	https://git.kernel.org/stable/c/b84f1386d84b3a73f73ebb416a3f97c5d64a8ab3
	https://git.kernel.org/stable/c/cb3e0244514d13507c6048777e1d0277e611cf6c
	https://git.kernel.org/stable/c/3753e34b73fcbe2a2edbe984614a008a261697ef