CVE-2021-47305: dma-buf/sync_file: Don't leak fences on merge failure
In the Linux kernel, the following vulnerability has been resolved:
dma-buf/sync_file: Don't leak fences on merge failure
Each add_fence() call does a dma_fence_get() on the relevant fence. In
the error path, we weren't calling dma_fence_put() so all those fences
got leaked. Also, in the krealloc_array failure case, we weren't
freeing the fences array. Instead, ensure that i and fences are always
zero-initialized and dma_fence_put() all the fences and kfree(fences) on
every error path.
Security readout for executives and security teams
Plain-English summary
CVE-2021-47305 is a Linux kernel resource-leak bug in dma-buf sync file fence merging. When a merge failed, the kernel could retain fence references and an array instead of releasing them. The public record does not provide CVSS, CWE, exploitability details, or confirmed business impact.
Executive priority
Treat this as a kernel hygiene issue with incomplete severity data. It does not justify emergency response based on the provided sources alone, but affected kernels should be brought into normal security patch cycles.
Technical view
The flaw is in dma-buf/sync_file error handling. add_fence() increments fence references with dma_fence_get(), but merge-failure paths did not consistently call dma_fence_put(); one krealloc_array failure path also missed kfree(fences). Stable commits add cleanup on every error path.
Likely exposure
Exposure is limited to Linux systems running affected kernel code paths. The bundle lists Linux kernel affected versions and stable commit references, but not distribution package mappings, enabled subsystems, or reachable attack surfaces.
Exploitation context
No active exploitation is stated in the source bundle, and KEV is false. The provided material describes a resource leak on failure paths, not a public exploit, privilege boundary, or remote attack scenario.
Researcher notes
The useful evidence is the upstream fix rationale: missing dma_fence_put() and kfree(fences) on merge error paths. The bundle lacks CVSS, CWE, proof-of-concept status, distribution advisories, or details proving local or remote exploitability.
Mitigation direction
Check Linux vendor advisories for patched kernels containing the referenced stable commits.
Prioritize kernel updates where untrusted users or workloads can reach graphics or dma-buf functionality.
Track distribution-specific package versions rather than upstream commit hashes alone.
If patch timing is unclear, ask the OS vendor for exposure guidance.
Validation and detection
Inventory Linux kernel versions across servers, endpoints, containers, and appliances.
Map each kernel package to vendor advisories or the referenced upstream stable commits.
Confirm whether dma-buf/sync_file functionality is present and relevant on affected systems.
Document systems where kernel updates cannot be applied promptly.
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-47305 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.