# CVE-2021-47420: drm/amdkfd: fix a potential ttm->sg memory leak

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-05-21T15:04:08.635Z
- Modified: 2026-06-17T04:17:25.943Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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!

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.14 before 5.14.12; 5.15

## References

- <https://git.kernel.org/stable/c/7e5ce6029b627efb4a004746cfdc1eeff850e6eb> (patch)
- <https://git.kernel.org/stable/c/b072ef1215aca33186e3a10109e872e528a9e516> (patch)

## Sources

- CVE List: [CVE-2021-47420](https://www.cve.org/CVERecord?id=CVE-2021-47420), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47420](https://nvd.nist.gov/vuln/detail/CVE-2021-47420), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47420 · Whole record: https://cve.day/CVE-2021-47420.json · Rebuilt by cve.day 2026-11-25T22:58:08.849Z
