What’s Vulnerable › Vulnerabilities
CVE-2021-47420: drm/amdkfd: fix a potential ttm->sg memory leak
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-06-17
- Weakness: CWE-401
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 products
- Linux kernel: from 5.14 before 5.14.12; 5.15-rc1, 5.15-rc2, 5.15-rc3, 5.15-rc4 — fixed in 5.14.12
How to fix
Upgrade to a fixed version: Linux kernel 5.14.12. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/7e5ce6029b627efb4a004746cfdc1eeff850e6eb
- https://git.kernel.org/stable/c/b072ef1215aca33186e3a10109e872e528a9e516
- https://git.kernel.org/stable/c/7e5ce6029b627efb4a004746cfdc1eeff850e6eb
- https://git.kernel.org/stable/c/b072ef1215aca33186e3a10109e872e528a9e516
Get alerted when CVE-2021-47420 or the next vulnerability affects your stack