Vulnerabilities · 2021 · Linux
CVE-2021-47305
Linux Kernel vulnerability
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.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/0d514185ae792d3a1903c8e1a83899aa996705ce · Patch
- git.kernel.org/stable/c/19edcd97727aae9362444a859a24d99a8730cb27 · Patch
- git.kernel.org/stable/c/19f51c2529339280d2c8c6427cd3e21ddf1ac3f8 · Patch
- git.kernel.org/stable/c/41f45e91c92c8480242ea448d54e28c753b13902 · Patch
- git.kernel.org/stable/c/e0355a0ad31a1d677b2a4514206de4902bd550e8 · Patch
- git.kernel.org/stable/c/ffe000217c5068c5da07ccb1c0f8cce7ad767435 · Patch
- nvd.nist.gov/vuln/detail/CVE-2021-47305
- cve.org/CVERecord?id=CVE-2021-47305
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.