CVE-2026-97494: drm/amdgpu: validate and share PSP fw_pri_buf copies via psp_copy_fw
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: validate and share PSP fw_pri_buf copies via psp_copy_fw
Change psp_copy_fw from void to int: return -ENODEV when drm_dev_enter fails, and -EINVAL when the image size is zero or larger than the 1 MiB PSP private buffer.
Replace open-coded memset/memcpy into fw_pri_buf with psp_copy_fw.
The Linux kernel CVE team has assigned CVE-2026-97494 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 25bec2425c3d50ba9a92ad87bbf8628be29e5c32 Fixed in 6.18.53 with commit 1aa55af304a2decaacca1d1fabe4257c277ca54a Fixed in 7.2 with commit d1f9f5839bd785a3a06335a01d53282e80f8e5fa
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-97494
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_psp.c drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h drivers/gpu/drm/amd/amdgpu/psp_v11_0.c drivers/gpu/drm/amd/amdgpu/psp_v12_0.c drivers/gpu/drm/amd/amdgpu/psp_v13_0.c drivers/gpu/drm/amd/amdgpu/psp_v13_0_4.c drivers/gpu/drm/amd/amdgpu/psp_v14_0.c drivers/gpu/drm/amd/amdgpu/psp_v3_1.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/25bec2425c3d50ba9a92ad87bbf8628be29e5c32 https://git.kernel.org/stable/c/1aa55af304a2decaacca1d1fabe4257c277ca54a https://git.kernel.org/stable/c/d1f9f5839bd785a3a06335a01d53282e80f8e5fa