Skip to contentSkip to conversation

CVE-2026-63863: drm/gpusvm: Fix unbalanced unlock in drm_gpusvm_scan_mm()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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/gpusvm: Fix unbalanced unlock in drm_gpusvm_scan_mm()

There is a unbalanced lock/unlock to gpusvm notifier lock:

[  931.045868] =====================================
[  931.046509] WARNING: bad unlock balance detected!
[  931.047149] 6.19.0-rc6+xe-**************** #9 Tainted: G     U
[  931.048150] -------------------------------------
[  931.048790] kworker/u5:0/51 is trying to release lock (&gpusvm->notifier_lock) at:
[  931.049801] [<ffffffffa090c0d8>] drm_gpusvm_scan_mm+0x188/0x460 [drm_gpusvm_helper]
[  931.050802] but there are no more locks to release!
[  931.051463]

The drm_gpusvm_notifier_unlock() sits under err_free label and the first jump to err_free is just before calling the drm_gpusvm_notifier_lock() causing unbalanced unlock.

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

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

	Issue introduced in 7.0 with commit f1d08a5864822684773105c60528e2abb577ca6c and fixed in 7.0.10 with commit 8efaa47a871662a8c21b819cec60786f7ef17ab4
	Issue introduced in 7.0 with commit f1d08a5864822684773105c60528e2abb577ca6c and fixed in 7.1 with commit d287dee565c3c32e1ed76ec1847af46809c29b90

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

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_gpusvm.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/8efaa47a871662a8c21b819cec60786f7ef17ab4
	https://git.kernel.org/stable/c/d287dee565c3c32e1ed76ec1847af46809c29b90