CVE-2021-47420

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

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

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!

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 264fb4d332f5e76743818480e482464437837c52 to before 7e5ce6029b627efb4a004746cfdc1eeff850e6ebAffected
  • 264fb4d332f5e76743818480e482464437837c52 to before b072ef1215aca33186e3a10109e872e528a9e516Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.14.12 through 5.14.*Not affected
  • 5.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.