drm/amdkfd: fix SMI event cross-process information leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix SMI event cross-process information leak
kfd_smi_ev_enabled() skips the suser privilege check when pid=0. PROCESS_START, PROCESS_END, and VMFAULT events are emitted with pid=0 while carrying another process's PID and command name, so any /dev/kfd user in the render group can monitor all GPU workloads.
Pass the target process PID into kfd_smi_event_add() for these events so the existing per-client filter restricts delivery to the owning process or CAP_SYS_ADMIN subscribers.
From the CVE record · Linux
The Linux kernel’s drm/amdkfd SMI event filtering can expose GPU workload information across processes. A local user with access to /dev/kfd through the render group can monitor other processes’ GPU events, including their PIDs and command names, without interacting with those processes.
Anyone running Linux kernels with the affected drm/amdkfd code should check their installation; affected versions were not specified.