CVE & CISA-KEV Catalog

CVE-2021-47305

MEDIUM
5.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.70-1CVE-2021-47305
Fixed in:5.14.6-1CVE-2021-47305
Fixed in:5.14.6-1CVE-2021-47305
Fixed in:5.14.6-1CVE-2021-47305

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.24%probability of exploitation in 30 days
15thpercentile

Low risk: more likely to be exploited than 15% of all known CVEs.

References

Related Vulnerabilities

Other CWE-617 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-8617High7.593%-Fix
CVE-2020-36222High7.578%-Fix
CVE-2006-5779High7.575%-Fix
CVE-2021-27212High7.564%-Fix
CVE-2018-5740High7.559%-Fix
CVE-2023-28425Medium5.555%-Fix
Embed a live status badge for CVE-2021-47305
CVE-2021-47305 severity badge

Markdown

[![CVE-2021-47305](https://tridentstack.com/cve/badge/CVE-2021-47305.svg)](https://tridentstack.com/cve/CVE-2021-47305)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-47305"><img src="https://tridentstack.com/cve/badge/CVE-2021-47305.svg" alt="CVE-2021-47305"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-12.