CVE-2021-47420

published 21 May 2024 · updated 11 May 2026

drm/amdkfd: fix a potential ttm->sg memory leak

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7e5ce6029b627efb4a004746cfdc1eeff850e6eb and Kernel b072ef1215aca33186e3a10109e872e528a9e516.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.14, >=264fb4d332f5e76743818480e482464437837c52 <7e5ce6029b627efb4a004746cfdc1eeff850e6eb, >=264fb4d332f5e76743818480e482464437837c52 <b072ef1215aca33186e3a10109e872e528a9e5167e5ce6029b627efb4a004746cfdc1eeff850e6eb, b072ef1215aca33186e3a10109e872e528a9e516

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47420 severity on Zeptric[![CVE-2021-47420](https://zeptric.io/badge/cve/CVE-2021-47420.svg)](https://zeptric.io/cve/CVE-2021-47420)