5.5medium
drm/amdkfd: fix a potential ttm->sg memory leak
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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!
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 264fb4d332f5e76743818480e482464437837c52 before 7e5ce6029b627efb4a004746cfdc1eeff850e6eb, from 264fb4d332f5e76743818480e482464437837c52 before b072ef1215aca33186e3a10109e872e528a9e516, 5.14 Not affected: before 5.14, from 5.14.12 up to 5.14.*, from 5.15 up to * | CVE List |
| linux linux_kernel | from 5.14 before 5.14.12, 5.15 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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!
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: drm/amdkfd: soluciona una posible pérdida de memoria de ttm->sg. La memoria se asigna para ttm->sg mediante kmalloc en kfd_mem_dmamap_userptr, pero kfree no la libera en kfd_mem_dmaunmap_userptr. ¡Libérala!
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47420 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47420 changed 2026-06-17 | Public domain |