A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-47378

CVE-2021-47378: Linux Kernel Use-After-Free Vulnerability

CVE-2021-47378 is a use-after-free flaw in the Linux Kernel's nvme-rdma component where improper destruction order of cm_id and qp can lead to memory corruption. This article covers technical details, impact, and fixes.

Published: February 25, 2026

CVE-2021-47378 Overview

A use-after-free vulnerability exists in the Linux kernel's NVMe-RDMA (Non-Volatile Memory Express over Remote Direct Memory Access) subsystem. The flaw occurs due to improper ordering of resource destruction during RDMA connection establishment error handling. Specifically, the queue pair (QP) is destroyed before the connection manager identifier (cm_id), which can result in CMA (Connection Manager Abstraction) events being received after the QP has already been freed, leading to a use-after-free condition.

Critical Impact

This vulnerability allows network-based attackers to potentially trigger memory corruption through improper resource lifecycle management in the NVMe-RDMA driver, which could lead to system compromise or denial of service.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 5.15-rc1
  • Systems utilizing NVMe-RDMA storage connectivity

Discovery Timeline

  • 2024-05-21 - CVE CVE-2021-47378 published to NVD
  • 2025-04-02 - Last updated in NVD database

Technical Details for CVE-2021-47378

Vulnerability Analysis

This use-after-free vulnerability (CWE-416) resides in the Linux kernel's NVMe-RDMA driver, which handles high-performance storage access over RDMA networks. The core issue stems from an incorrect sequence of resource destruction during connection error handling.

In the RDMA connection establishment process, two key resources are involved: the connection manager identifier (cm_id) and the queue pair (qp). The cm_id manages connection events, while the qp handles the actual data transfer operations. When a connection error occurs, the original code path would destroy the qp in the connection manager event handler before the cm_id was destroyed.

This ordering creates a race condition window where CMA events can still be delivered to the destroyed qp, causing the kernel to access freed memory. An attacker with network access could potentially manipulate RDMA connection timing to trigger this condition, leading to memory corruption that could be exploited for code execution or system destabilization.

Root Cause

The root cause is improper resource lifecycle management in the nvme_rdma_alloc_queue() function's error handling path. The code destroys the queue pair (qp) within the connection manager event handler during error scenarios, but the cm_id continues to exist and can still receive events that reference the already-freed qp. The correct behavior requires destroying the cm_id first to ensure no further events are delivered, then destroying the qp.

Attack Vector

The vulnerability is exploitable over the network, requiring no authentication or user interaction. An attacker targeting systems with NVMe-RDMA enabled could:

  1. Initiate RDMA connection requests to the target system
  2. Manipulate connection establishment timing to induce error conditions
  3. Trigger the race condition between cm_id event delivery and qp destruction
  4. Exploit the use-after-free to corrupt kernel memory structures

The fix ensures that error reporting is passed to the upper layer, and the qp destruction is deferred until after the cm_id is properly destroyed in nvme_rdma_alloc_queue().

Detection Methods for CVE-2021-47378

Indicators of Compromise

  • Unexpected kernel panics or oops messages referencing NVMe-RDMA or RDMA CM functions
  • Kernel log entries showing memory corruption in nvme_rdma module components
  • System instability on servers utilizing NVMe-over-Fabrics with RDMA transport
  • Unusual RDMA connection establishment failures or resets

Detection Strategies

  • Monitor kernel logs for use-after-free warnings related to nvme_rdma or rdma_cm subsystems
  • Deploy kernel address sanitizer (KASAN) in development environments to detect memory access violations
  • Implement network monitoring for anomalous RDMA connection patterns targeting NVMe-RDMA ports
  • Review system crash dumps for call traces involving nvme_rdma_alloc_queue or CM event handlers

Monitoring Recommendations

  • Enable enhanced kernel logging for RDMA and NVMe subsystems
  • Configure alerting on kernel oops or panic events on systems with NVMe-RDMA enabled
  • Monitor RDMA connection metrics for unusual error rates or connection establishment failures
  • Implement file integrity monitoring on kernel modules related to NVMe-RDMA

How to Mitigate CVE-2021-47378

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix commits
  • Consider disabling NVMe-RDMA functionality on critical systems until patches can be applied
  • Restrict network access to RDMA-capable interfaces to trusted hosts only
  • Implement network segmentation to isolate RDMA traffic from untrusted networks

Patch Information

The Linux kernel maintainers have released patches that address this vulnerability by reordering resource destruction. The fix ensures that cm_id is destroyed before qp to prevent receiving CMA events after the queue pair has been freed. The patches are available in the stable kernel trees:

  • Kernel Patch 9817d763
  • Kernel Patch d268a182
  • Kernel Patch ecf0dc5a

Workarounds

  • Disable NVMe-RDMA transport by unloading the nvme_rdma kernel module if not required for operations
  • Implement firewall rules to block RDMA traffic from untrusted networks
  • Use alternative NVMe-oF transports such as TCP where RDMA is not essential
  • Apply network ACLs to restrict RDMA connection establishment to authorized systems only
bash
# Temporarily disable nvme-rdma module
modprobe -r nvme_rdma

# Blacklist the module to prevent automatic loading
echo "blacklist nvme_rdma" >> /etc/modprobe.d/blacklist-nvme-rdma.conf

# Verify module is not loaded
lsmod | grep nvme_rdma

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.07%

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

  • Kernel Patch Update

  • Kernel Patch Update
  • Related CVEs
  • CVE-2026-23221: Linux Kernel Use-After-Free Vulnerability

  • CVE-2025-71236: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23159: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23166: Linux Kernel Use-After-Free Vulnerability
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
  • English
  • 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