drm/xe/pf: Fix use-after-free in migration restore
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/pf: Fix use-after-free in migration restore
When an error is returned from xe_sriov_pf_migration_restore_produce(), the data pointer is not set to NULL, which can trigger use-after-free in subsequent .write() calls. Set the pointer to NULL upon error to fix the problem.
(cherry picked from commit 4f53d8c6d23527d734fe3531d08e15cb170a0819)
From the CVE record · Linux
The Linux kernel’s drm/xe/pf migration restore path can leave a data pointer set after an error. Subsequent write calls can trigger a use-after-free. The input does not specify the access or authentication needed to reach this condition.
Engineers running Linux kernels with the affected drm/xe/pf code should check their builds; affected versions are not specified.