drm/xe/migrate: prevent potential UAF
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/xe/migrate: prevent potential UAF
If we hit the error path, the previous fence (if there is one) has already been put() prior to this, so doing a fence_wait could lead to UAF. Tweak the flow to do to the put() until after we do the wait.
(cherry picked from commit 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e)
From the CVE record · Linux
The Linux kernel’s drm/xe/migrate code can wait on a fence after releasing it when an error path is reached, causing a potential use-after-free. The input does not establish how an attacker could trigger this path or whether access or user interaction is required.
Engineers running Linux kernels with the affected drm/xe/migrate code should check their versions; affected versions are not specified.