Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-3764

CVE-2021-3764: Linux Kernel Memory Leak DoS Vulnerability

CVE-2021-3764 is a memory leak flaw in the Linux Kernel's ccp_run_aes_gcm_cmd() function that enables denial of service attacks. This article covers the technical details, affected versions, system impact, and mitigation.

Published: February 25, 2026

CVE-2021-3764 Overview

A memory leak vulnerability was discovered in the Linux kernel's ccp_run_aes_gcm_cmd() function within the CCP (Cryptographic Coprocessor) driver. This flaw allows a local attacker with low privileges to cause a denial of service condition by exhausting system memory resources. The vulnerability is similar to the previously identified CVE-2019-18808, indicating a recurring pattern in resource management within this cryptographic subsystem.

Critical Impact

This memory leak vulnerability can be exploited to cause system instability and denial of service by exhausting kernel memory resources, potentially affecting system availability on servers and workstations utilizing AMD CCP hardware.

Affected Products

  • Linux Kernel (multiple versions)
  • Linux Kernel 5.15 and release candidates (5.15-rc1, 5.15-rc2, 5.15-rc3)
  • Systems utilizing AMD Cryptographic Coprocessor (CCP) driver

Discovery Timeline

  • 2022-08-23 - CVE-2021-3764 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3764

Vulnerability Analysis

The vulnerability resides in the ccp_run_aes_gcm_cmd() function located in drivers/crypto/ccp/ccp-ops.c. This function handles AES-GCM (Galois/Counter Mode) cryptographic operations for the AMD CCP hardware accelerator. The flaw occurs due to improper error handling during DMA (Direct Memory Access) operations, where allocated resources are not properly released when certain error conditions are encountered.

When the DMA mapping operation fails, the code incorrectly jumps to an error handler (e_ctx) that doesn't properly clean up the previously allocated AAD (Additional Authenticated Data) resources. This results in memory being allocated but never freed, causing a gradual memory leak that can be exploited through repeated cryptographic operations.

Root Cause

The root cause is a resource leak vulnerability (CWE-401) combined with improper resource control (CWE-400). Specifically, when an error occurs during the DMA setup for cryptographic operations, the error handling path fails to properly deallocate the AAD buffer that was allocated earlier in the function. The incorrect goto label (e_ctx instead of e_aad) skips the necessary cleanup code, leaving allocated memory orphaned in kernel space.

Attack Vector

This vulnerability requires local access to the system with low-level privileges. An attacker can exploit this flaw by repeatedly invoking the vulnerable cryptographic operation through the kernel's crypto subsystem interface. Each failed or crafted operation leaves behind unreleased memory, eventually leading to memory exhaustion and system denial of service. The attack does not require user interaction and can be automated for persistent impact.

c
 			    in_place ? DMA_BIDIRECTIONAL
 				     : DMA_TO_DEVICE);
 	if (ret)
-		goto e_ctx;
+		goto e_aad;

 	if (in_place) {
 		dst = src;

Source: GitHub Linux Commit

Detection Methods for CVE-2021-3764

Indicators of Compromise

  • Gradual increase in kernel memory usage over time without corresponding user-space activity
  • System log entries indicating memory allocation failures in the CCP driver
  • Unexplained system slowdowns or out-of-memory (OOM) killer activations
  • Increased activity in /proc/slabinfo related to cryptographic operations

Detection Strategies

  • Monitor kernel memory allocation patterns using tools like slabtop or /proc/meminfo
  • Implement alerts for unusual memory consumption in systems with AMD CCP hardware
  • Review system logs for CCP driver errors or memory allocation failures
  • Use kernel tracing tools (ftrace, perf) to monitor ccp_run_aes_gcm_cmd() function calls and error returns

Monitoring Recommendations

  • Configure memory usage thresholds and alerts on systems using AMD CCP hardware
  • Implement regular system health checks that include kernel memory statistics
  • Enable kernel memory debugging options (KMEMLEAK) in development or staging environments to detect leaks
  • Monitor for abnormal patterns in cryptographic operation requests

How to Mitigate CVE-2021-3764

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes commit 505d9dcb0f7ddf9d075e729523a33d38642ae680
  • Review systems using AMD CCP hardware accelerators for signs of memory exhaustion
  • Consider temporarily disabling the CCP driver if patching is not immediately possible
  • Implement memory monitoring and alerting as an interim protective measure

Patch Information

The vulnerability has been addressed in the upstream Linux kernel through commit 505d9dcb0f7ddf9d075e729523a33d38642ae680. This fix corrects the error handling path in ccp_run_aes_gcm_cmd() by changing the goto label from e_ctx to e_aad, ensuring proper cleanup of allocated resources when DMA mapping fails. Users should update to a kernel version that includes this commit or apply the patch from the GitHub Linux Commit Reference.

Additional distribution-specific advisories are available from Red Hat and the Debian Security Tracker.

Workarounds

  • Blacklist or unload the ccp kernel module if AMD CCP hardware acceleration is not required
  • Restrict access to cryptographic interfaces for untrusted local users
  • Implement resource limits (cgroups) to contain the impact of memory exhaustion attacks
  • Schedule regular system reboots as a temporary measure to reclaim leaked memory
bash
# Temporarily disable CCP driver module
sudo modprobe -r ccp

# Blacklist the CCP module to prevent automatic loading
echo "blacklist ccp" | sudo tee /etc/modprobe.d/blacklist-ccp.conf

# Verify module is not loaded
lsmod | grep ccp

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400

  • CWE-401
  • Technical References
  • Red Hat CVE-2021-3764 Advisory

  • Red Hat Bug Report #1997467

  • Debian CVE-2021-3764 Tracker
  • Vendor Resources
  • GitHub Linux Commit Reference
  • Related CVEs
  • CVE-2026-31465: Linux Kernel Writeback DoS Vulnerability

  • CVE-2026-31472: Linux Kernel IPTFS DoS Vulnerability

  • CVE-2026-31451: Linux Kernel ext4 DOS Vulnerability

  • CVE-2026-31448: Linux Kernel ext4 DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English