drm/amdkfd: Fix a race condition of vram buffer unref in svm code
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 a race condition of vram buffer unref in svm code
prange->svm_bo unref can happen in both mmu callback and a callback after migrate to system ram. Both are async call in different tasks. Sync svm_bo unref operation to avoid random "use-after-free".
From the CVE record · Linux
The Linux kernel's drm/amdkfd SVM code has a race when two asynchronous callbacks unreference the same VRAM buffer, potentially causing a use-after-free. The input does not specify how an attacker could trigger the race or whether access or user interaction is required.
Engineers running Linux kernels with drm/amdkfd SVM code should check their versions; affected versions are not specified.