drm/amdkfd: fix UAF race in destroy_queue_cpsch
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix UAF race in destroy_queue_cpsch
wait_on_destroy_queue() drops locks to wait for queue resume, allowing a concurrent destroy to free the queue. Use is_being_destroyed flag to serialize destruction.
From the CVE record · Linux
The Linux kernel’s drm/amdkfd queue destruction code has a use-after-free race. If a queue is destroyed concurrently while wait_on_destroy_queue() has dropped its locks to wait for queue resume, an attacker able to trigger that condition could cause the queue to be used after it is freed. The input does not specify whether local access, authentication or user interaction is required.
Engineers running Linux kernels with drm/amdkfd should check their versions; affected versions are not specified in the input.