drm/amdgpu: clamp the isolation index for rings outside a partition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
6.15
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: clamp the isolation index for rings outside a partition
adev->isolation[] has one slot per partition, but a ring that is not assigned to one keeps AMDGPU_XCP_NO_PARTITION, which is ~0, so indexing the array with it is out of bounds. SDMA submissions hit this on both the isolation enforcement and the VM flush path and trip UBSAN.
Fall back to the first slot the way the cleaner shader path already does, and stop taking the address before the ring type check that makes it relevant.
From the CVE record · Linux
The Linux kernel’s amdgpu driver can index beyond its isolation array when an SDMA submission uses a ring that is not assigned to a partition. This affects the isolation enforcement and VM flush paths and trips UBSAN. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the amdgpu driver should check their systems; affected versions are not specified.