CVE-2026-74393: drm/syncobj: Fix memory leak in drm_syncobj_find_fence()

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081507-CVE-2026-74393-6160@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/syncobj: Fix memory leak in drm_syncobj_find_fence()

Commit 18226ba52159 ("drm/syncobj: reject invalid flags in
drm_syncobj_find_fence") forgot to take into account the fact that
drm_syncobj_find() takes a reference to syncobj and returns early
without dropping the reference, leading to memory leaks.

Reported by: Sam Spencer <[email protected]>

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


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

	Issue introduced in 6.9 with commit 18226ba52159257d4c2f777a168cc09adb3c1ac0 and fixed in 6.12.97 with commit e245f3491bf30a758786a4424854f61fee472308
	Issue introduced in 6.9 with commit 18226ba52159257d4c2f777a168cc09adb3c1ac0 and fixed in 6.18.40 with commit 7471006cd854d159723344be809e8287a2d75502
	Issue introduced in 6.9 with commit 18226ba52159257d4c2f777a168cc09adb3c1ac0 and fixed in 7.1.5 with commit 5c5994a1204743fa55e4c198ed93a6c36f21cd1f
	Issue introduced in 6.9 with commit 18226ba52159257d4c2f777a168cc09adb3c1ac0 and fixed in 7.2-rc1 with commit e5b93bd6fdb92aa5e4689715d7e8487d9ce66a38

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-74393
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/drm_syncobj.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/e245f3491bf30a758786a4424854f61fee472308
	https://git.kernel.org/stable/c/7471006cd854d159723344be809e8287a2d75502
	https://git.kernel.org/stable/c/5c5994a1204743fa55e4c198ed93a6c36f21cd1f
	https://git.kernel.org/stable/c/e5b93bd6fdb92aa5e4689715d7e8487d9ce66a38
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.