drm/amdgpu: drop redundant sched job cleanup when cs is aborted
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/amdgpu: drop redundant sched job cleanup when cs is aborted
Once command submission failed due to userptr invalidation in amdgpu_cs_submit, legacy code will perform cleanup of scheduler job. However, it's not needed at all, as former commit has integrated job cleanup stuff into amdgpu_job_free. Otherwise, because of double free, a NULL pointer dereference will occur in such scenario.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2457
From the CVE record · Linux
The Linux kernel’s amdgpu command-submission path can perform redundant scheduler-job cleanup after a submission fails due to userptr invalidation. The resulting double free can cause a NULL pointer dereference; the input does not establish attacker access requirements or an exploitation path.
Engineers running the Linux kernel with amdgpu should check their installations; affected versions are not specified.