Resource leaks in ccp_run_aes_gcm_cmd() in Kernel

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback