Resource leaks in ccp_run_aes_gcm_cmd() in Kernel
Summary
GSD-2021-1001738: crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd(). Affects Kernel versions >= 36cf515b9bbe298e1ce7384620f0d4ec45ad3328, < e450c422aa233e9f80515f2ee9164e33f158a472. 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 Kernel is a crucial component of the Linux operating system that provides core functionalities and manages system resources. It includes various subsystems, including the crypto subsystem, responsible for cryptographic operations. One of the components within the crypto subsystem is ccp_run_aes_gcm_cmd(). This function is used for executing AES-GCM commands using the Crypto Co-Processor (CCP) hardware accelerator. The CCP hardware provides efficient and accelerated cryptographic operations, enhancing system performance and security.
Vulnerability Detail
The vulnerability identified in ccp_run_aes_gcm_cmd() involves resource leaks. Resource leaks occur when system resources, such as memory or file descriptors, are not properly released after use. In this case, the function fails to release allocated resources under certain conditions, leading to resource exhaustion and potential denial-of-service (DoS) scenarios. An attacker could exploit this vulnerability to exhaust system resources, causing system instability or crashes. The vulnerability was introduced in version v4.12 of the Linux Kernel and has been fixed in version v5.14.10.
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
As a workaround, users can mitigate the risk by avoiding the use of ccp_run_aes_gcm_cmd() in their applications or by implementing additional resource management mechanisms to ensure proper release of allocated resources. However, it is strongly advised to apply the official fix by updating to the latest version of the Linux Kernel.
Conclusion
The resource leaks in ccp_run_aes_gcm_cmd() within the Kernel can lead to resource exhaustion and potential denial-of-service (DoS) scenarios. It is crucial to update the Linux Kernel to version v5.14.10 or later to mitigate this vulnerability. Users can obtain the updated Kernel from the official Linux Kernel repository or through their respective Linux distribution's package management system. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ccp_run_aes_gcm_cmd() is a function within the Linux Kernel's crypto subsystem that executes AES-GCM commands using the Crypto Co-Processor (CCP) hardware accelerator.
The vulnerability can lead to resource exhaustion and potential denial-of-service (DoS) scenarios. An attacker could exploit this vulnerability to exhaust system resources, causing system instability or crashes.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.14.10 or later. This update includes the necessary patches to address the resource leaks in ccp_run_aes_gcm_cmd().
As a workaround, users can mitigate the risk by avoiding the use of ccp_run_aes_gcm_cmd() in their applications or by implementing additional resource management mechanisms to ensure proper release of allocated resources.
This vulnerability was introduced in version v4.12 of the Linux Kernel and has been fixed in version v5.14.10.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.