CVE-2021-47420
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom 5.14 before 5.14.12, 5.15NVD

Classification

CWE-401

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

SourceRecordLicence
CVE ListCVE-2021-47420 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47420 changed 2026-06-17Public domain