CVE-2021-47305dma-buf/sync_file: Don't leak fences on merge failure
- 5.5MediumCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < 19f51c2529339280d2c8c6427cd3e21ddf1ac3f8
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < e0355a0ad31a1d677b2a4514206de4902bd550e8
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < 41f45e91c92c8480242ea448d54e28c753b13902
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < 0d514185ae792d3a1903c8e1a83899aa996705ce
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < 19edcd97727aae9362444a859a24d99a8730cb27
- affected a02b9dc90d844cc7df7b63264e7920cc425052d9 – < ffe000217c5068c5da07ccb1c0f8cce7ad767435
- affected 4.9
- unaffected < 4.9
- unaffected 4.14.241 – ≤ 4.14.*
- unaffected 4.19.199 – ≤ 4.19.*
- unaffected 5.4.135 – ≤ 5.4.*
- unaffected 5.10.53 – ≤ 5.10.*
- unaffected 5.13.5 – ≤ 5.13.*
- unaffected 5.14 – ≤ *
References
References6
- https://git.kernel.org/stable/c/19f51c2529339280d2c8c6427cd3e21ddf1ac3f8 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/e0355a0ad31a1d677b2a4514206de4902bd550e8 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/41f45e91c92c8480242ea448d54e28c753b13902 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/0d514185ae792d3a1903c8e1a83899aa996705ce (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/19edcd97727aae9362444a859a24d99a8730cb27 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/ffe000217c5068c5da07ccb1c0f8cce7ad767435 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-34310 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47305)Record last updated .