Skip to contentSkip to conversation

CVE-2026-98905: drm/amdkfd: Properly acquire queue buffers in CRIU restore

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/amdkfd: Properly acquire queue buffers in CRIU restore

When kfd_queue_acquire_buffers() was split off from set_queue_properties_from_user(), set_queue_properties_from_criu() was missed. Thus, set_queue_properties_from_criu() is not filling out the buffer fields of queue_properties, which can come up when subsequent code expects them to be non-null.

Add the proper call to kfd_queue_acquire_buffers(), and also use the right cast types in set_queue_properties_from_criu() (which were missed at the same time)

(cherry picked from commit 88ed96abbbe27b70193544fbc1ee06448c274714)

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

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

	Fixed in 6.12.111 with commit e2dbdd14c3352483a89e4a9afda05d0f3fcc2c83
	Fixed in 6.18.53 with commit c6c290e408fe328e091f0bf7502a42b0deea82e9
	Fixed in 7.2 with commit 20a5e7ffdfecddc34c60a6b4483f42acf3d8731d

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

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/amdkfd/kfd_process_queue_manager.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/e2dbdd14c3352483a89e4a9afda05d0f3fcc2c83
	https://git.kernel.org/stable/c/c6c290e408fe328e091f0bf7502a42b0deea82e9
	https://git.kernel.org/stable/c/20a5e7ffdfecddc34c60a6b4483f42acf3d8731d