CVE-2021-47305

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47305
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47305.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47305
Downstream
Related
Published
2024-05-21T15:15:18Z
Modified
2025-08-09T20:01:26Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

dma-buf/sync_file: Don't leak fences on merge failure

Each addfence() call does a dmafenceget() on the relevant fence. In the error path, we weren't calling dmafenceput() so all those fences got leaked. Also, in the kreallocarray failure case, we weren't freeing the fences array. Instead, ensure that i and fences are always zero-initialized and dmafenceput() all the fences and kfree(fences) on every error path.

References

Affected packages