CVE-2021-47420Published May 21, 2024 · May 21Updated Jun 17
drm/amdkfd: fix a potential ttm->sg memory leak
Linux
Medium5.5Fix available
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 a potential ttm->sg memory leak
Memory is allocated for ttm->sg by kmalloc in kfd_mem_dmamap_userptr, but isn't freed by kfree in kfd_mem_dmaunmap_userptr. Free it!
From the CVE record · Linux
The Linux kernel's drm/amdkfd code can leak memory allocated for ttm->sg when userptr memory is unmapped. The input does not specify whether an attacker can trigger the leak or what access or interaction would be required.
Engineers running Linux kernels with drm/amdkfd should check their versions; affected versions are not specified.