CVE-2021-47420: drm/amdkfd: fix a potential ttm->sg memory leak
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!
Security readout for executives and security teams
Plain-English summary
CVE-2021-47420 is a Linux kernel memory leak in the AMD KFD graphics/compute driver path. Memory allocated during a user pointer DMA mapping path was not freed during unmapping. The public record does not provide CVSS, CWE, exploitability, or confirmed impact beyond the leak.
Executive priority
Treat this as a routine kernel hygiene issue unless your environment relies heavily on AMD GPU compute or multi-user GPU workloads. The available evidence does not support emergency handling, but affected kernels should be updated through normal security maintenance.
Technical view
The issue is in drm/amdkfd: kfd_mem_dmamap_userptr allocates ttm->sg with kmalloc, while kfd_mem_dmaunmap_userptr failed to release it with kfree. Kernel stable commits correct the missing free. The source bundle identifies Linux 5.14-era versions, including before 5.14.12 and 5.15 context, as affected.
Likely exposure
Exposure is most likely on Linux systems running affected kernels with the drm/amdkfd AMD GPU compute driver code present or enabled. The sources do not identify specific distributions, appliances, cloud images, or default configurations.
Exploitation context
There is no KEV listing and no cited source in the bundle claiming active exploitation or public weaponization. The documented weakness is a kernel memory leak, which may matter more on multi-user or long-running GPU compute systems if reachable.
Researcher notes
The public record is sparse: no CVSS, CWE, exploit requirements, or detailed reachability analysis are provided. The safest conclusion is a fixed kernel memory leak in drm/amdkfd, not a confirmed actively exploited vulnerability.
Mitigation direction
Upgrade to a vendor kernel containing the referenced stable fixes or equivalent backport.
Check Linux distribution advisories for the exact fixed package version.
Prioritize systems using AMD GPU compute or KFD functionality.
Restart affected systems after kernel updates if required by the vendor.
If no update is available, follow vendor guidance for temporary risk reduction.
Validation and detection
Inventory Linux kernel versions across AMD GPU-capable systems.
Confirm whether the referenced stable commits or equivalent backports are present.
Check distribution security advisories for CVE-2021-47420 coverage.
Review whether drm/amdkfd is enabled or used on exposed systems.
Monitor long-running GPU workloads for unexplained kernel memory growth.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47420 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.