CVE-2021-47305
Last modified
CVE-2021-47305 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.9, < 4.14.241 | — |
| Linux | Linux Kernel | >= 4.15, < 4.19.199 | — |
| Linux | Linux Kernel | >= 4.20, < 5.4.135 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.53 | — |
| Linux | Linux Kernel | >= 5.11, < 5.13.5 | — |
| Linux | Linux Kernel | 5.14 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47305?
How severe is CVE-2021-47305?
How do I fix CVE-2021-47305?
Are you affected by CVE-2021-47305?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
