CVE-2026-31462: drm/amdgpu: prevent immediate PASID reuse case
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: prevent immediate PASID reuse case
PASID resue could cause interrupt issue when process immediately runs into hw state left by previous process exited with the same PASID, it's possible that page faults are still pending in the IH ring buffer when the process exits and frees up its PASID. To prevent the case, it uses idr cyclic allocator same as kernel pid's.
(cherry picked from commit 8f1de51f49be692de137c8525106e0fce2d1912d)
The Linux kernel CVE team has assigned CVE-2026-31462 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.80 with commit c0b3882836de8ac991b626823966f385555bbcff Fixed in 6.18.21 with commit 51ccaf0e30c303149244c34820def83d74c86288 Fixed in 6.19.11 with commit 9e5ebfe99b223bb0eb9c50a125c9c02f4ef4c71b Fixed in 7.0 with commit 14b81abe7bdc25f8097906fc2f91276ffedb2d26
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-31462
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_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.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/c0b3882836de8ac991b626823966f385555bbcff https://git.kernel.org/stable/c/51ccaf0e30c303149244c34820def83d74c86288 https://git.kernel.org/stable/c/9e5ebfe99b223bb0eb9c50a125c9c02f4ef4c71b https://git.kernel.org/stable/c/14b81abe7bdc25f8097906fc2f91276ffedb2d26