Skip to contentSkip to conversation

CVE-2026-97495: drm/amdkfd: Check bounds on allocate_doorbell

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

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: Check bounds on allocate_doorbell

allocated_doorbell has an option to set the doorbell id to a specific value (used by CRIU). This value was not bounds checked.

Check to confirm it's less than KFD_MAX_NUM_OF_QUEUES_PER_PROCESS.

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

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

	Fixed in 6.12.111 with commit e0cecd04a4fc4c75e375b91cf53eab5ba2e4ab7f
	Fixed in 6.18.53 with commit c2c89118c27cbd3adace62c5df19d15b0e96ade1
	Fixed in 7.2 with commit 1f087bb8cf9e8797633da35c85435e557ef74d06

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

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_device_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/e0cecd04a4fc4c75e375b91cf53eab5ba2e4ab7f
	https://git.kernel.org/stable/c/c2c89118c27cbd3adace62c5df19d15b0e96ade1
	https://git.kernel.org/stable/c/1f087bb8cf9e8797633da35c85435e557ef74d06