Vulnerability in dma-buf/sync_file Package: Fences Leakage on Merge Failure
Summary
GSD-2021-1001152: dma-buf/sync_file: Don't leak fences on merge failure. Affects Kernel versions >= a02b9dc90d844cc7df7b63264e7920cc425052d9, < 19edcd97727aae9362444a859a24d99a8730cb27. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The dma-buf/sync_file package is a component of the Linux Kernel ecosystem. It provides functionality for sharing buffers between multiple devices or drivers in a secure and synchronized manner. This package is widely used in various Linux-based systems and is crucial for efficient data transfer and synchronization between different components. However, a vulnerability has been discovered in this package that could lead to the leakage of fences on merge failure.
Vulnerability Detail
The vulnerability in the dma-buf/sync_file package occurs when a merge operation fails. In such cases, the package fails to handle the failure properly, resulting in the leakage of fences. Fences are synchronization primitives used to ensure proper ordering and synchronization of operations between different components. The leakage of fences can lead to various security and stability issues, including potential resource exhaustion, data corruption, or even privilege escalation attacks. This vulnerability was introduced in version v4.9 of the Linux Kernel and has been fixed in version v5.13.5.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround available for this vulnerability. It is essential to update the Linux Kernel to the fixed version to mitigate the risk of fences leakage on merge failure.
Conclusion
The vulnerability in the dma-buf/sync_file package can lead to the leakage of fences on merge failure, potentially resulting in security and stability issues. It is crucial to update the Linux Kernel to version v5.13.5 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially lead to security and stability issues, including resource exhaustion, data corruption, or privilege escalation attacks.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will alert you in real-time if the vulnerability is detected.
At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to update the Linux Kernel to the fixed version to prevent any potential exploitation.
This vulnerability specifically affects the dma-buf/sync_file package in the Linux Kernel. However, it is always recommended to keep all software components up to date to ensure overall system security.
For more details about this vulnerability, you can refer to the source link provided in the database_specific section of this report: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001152.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.