Skip to contentSkip to conversation

CVE-2026-72332: accel/amdxdna: Prevent PM resume deadlock in hwctx_sync_debug_bo()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

accel/amdxdna: Prevent PM resume deadlock in hwctx_sync_debug_bo()

amdxdna_hwctx_sync_debug_bo() invokes the hardware hwctx_sync_debug_bo() callback while holding xdna->dev_lock.

The callback may call amdxdna_cmd_submit(), which in turn calls amdxdna_pm_resume_get(). If the device is suspended, amdxdna_pm_resume_get() may synchronously execute amdxdna_pm_resume(), which also acquires xdna->dev_lock, resulting in a deadlock.

Avoid the deadlock by calling amdxdna_pm_resume_get() before holding xdna->dev_lock in both amdxdna_hwctx_sync_debug_bo() and amdxdna_drm_config_hwctx_ioctl()

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

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

	Issue introduced in 6.19 with commit 7ea0468380216c10b73633b976d33efa8c12d375 and fixed in 7.1.5 with commit 2d8eeb0578ae3aadf112fd3e1997e58178f75979
	Issue introduced in 6.19 with commit 7ea0468380216c10b73633b976d33efa8c12d375 and fixed in 7.2-rc3 with commit e35c9cf5512814fb04f369f2eada64f0a7164609

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

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/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.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/2d8eeb0578ae3aadf112fd3e1997e58178f75979
	https://git.kernel.org/stable/c/e35c9cf5512814fb04f369f2eada64f0a7164609