CVE-2021-47305

MEDIUM

Linux Kernel 4.9-4.14.241 - Reachable Assertion via DMA-BUF Sync File Merge Failure

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0024
EPSS Percentile 14.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-617
Status published
Products (16)
Linux/Linux < 4.9
Linux/Linux 4.14.241 - 4.14.*
Linux/Linux 4.19.199 - 4.19.*
Linux/Linux 4.9
Linux/Linux 5.10.53 - 5.10.*
Linux/Linux 5.13.5 - 5.13.*
Linux/Linux 5.14
Linux/Linux 5.4.135 - 5.4.*
Linux/Linux a02b9dc90d844cc7df7b63264e7920cc425052d9 - 0d514185ae792d3a1903c8e1a83899aa996705ce
Linux/Linux a02b9dc90d844cc7df7b63264e7920cc425052d9 - 19edcd97727aae9362444a859a24d99a8730cb27
... and 6 more
Published May 21, 2024
Tracked Since Feb 18, 2026