Skip to contentSkip to conversation

CVE-2026-98997: drm/amdgpu/userq: only accept doorbell BOs as queue doorbell

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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/amdgpu/userq: only accept doorbell BOs as queue doorbell

amdgpu_userq_get_doorbell_index() pins any BO passed as doorbell_handle into the doorbell domain. For a regular BO, TTM moves it with ttm_bo_move_null() and its contents are lost. Since an importer on the same device gets the exporter's GEM object, a client can do this to a buffer another client shared with it.

Reject BOs that were not created in the doorbell domain.

v2: drop the error message, use a local abo variable (Christian)

(cherry picked from commit f7497bbc19db4821c62b9d97b31c9086feb2d917)

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

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

	Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 6.18.57 with commit 112dbe2b10d6d088a6c599980dd960dcbfa55ff0
	Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 7.2.11 with commit 8640b3f961d743d6dc0458c2b53a3af434690cc1
	Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 7.3 with commit 7f7c88dbf4d543f6703e53bdeed380e886733167

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

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/amd/amdgpu/amdgpu_userq.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/112dbe2b10d6d088a6c599980dd960dcbfa55ff0
	https://git.kernel.org/stable/c/8640b3f961d743d6dc0458c2b53a3af434690cc1
	https://git.kernel.org/stable/c/7f7c88dbf4d543f6703e53bdeed380e886733167