The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2023-5178

CVE-2023-5178: Linux Kernel Use-After-Free Vulnerability

CVE-2023-5178 is a use-after-free flaw in the Linux Kernel NVMe/TCP subsystem that may enable remote code execution or local privilege escalation. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-5178 Overview

A use-after-free vulnerability was discovered in the Linux kernel's NVMe/TCP subsystem, specifically in drivers/nvme/target/tcp.c within the nvmet_tcp_free_crypto function. This memory corruption flaw stems from a logical bug that can lead to both use-after-free and double-free conditions. Successful exploitation of this vulnerability may allow a malicious user with network access to execute arbitrary code remotely or escalate privileges locally on affected systems.

Critical Impact

This vulnerability enables remote code execution or local privilege escalation through memory corruption in the Linux kernel's NVMe over TCP target driver, affecting enterprise Linux distributions and storage infrastructure.

Affected Products

  • Linux Kernel (multiple versions)
  • Red Hat Enterprise Linux 8.0 and 9.0
  • NetApp Active IQ Unified Manager for VMware vSphere
  • NetApp SolidFire & HCI Management Node
  • NetApp SolidFire & HCI Storage Node

Discovery Timeline

  • November 1, 2023 - CVE-2023-5178 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-5178

Vulnerability Analysis

The vulnerability exists in the NVMe over TCP (NVMe/TCP) target implementation within the Linux kernel. This protocol allows NVMe storage to be accessed over TCP/IP networks, commonly used in enterprise storage environments and data centers. The flaw occurs during the cryptographic context cleanup process in the nvmet_tcp_free_crypto function, where improper memory management leads to accessing memory after it has been freed.

This type of memory corruption vulnerability is particularly dangerous in kernel code because it operates at the highest privilege level. An attacker who can trigger this condition could potentially corrupt kernel memory structures, leading to arbitrary code execution with kernel privileges or causing system instability.

Root Cause

The root cause is a logical bug in the NVMe/TCP subsystem's cryptographic resource management. When handling TCP connections for NVMe targets, the code fails to properly track the lifecycle of cryptographic context objects. This results in a scenario where:

  1. Memory associated with cryptographic structures is freed
  2. Subsequent code paths attempt to access or free this memory again
  3. This creates both use-after-free and double-free conditions

The CWE-416 (Use After Free) classification indicates that the vulnerability stems from referencing memory after it has been deallocated, allowing attackers to manipulate the contents of that memory region for malicious purposes.

Attack Vector

The vulnerability can be exploited over the network (Attack Vector: Network) by a malicious user with low-privilege access. The attack does not require user interaction and can target systems running NVMe/TCP target services. An attacker could:

  1. Establish a TCP connection to an NVMe target service
  2. Send specially crafted requests that trigger the vulnerable code path in nvmet_tcp_free_crypto
  3. Exploit the resulting memory corruption to execute arbitrary code or escalate privileges

The network-accessible nature of this vulnerability combined with the potential for remote code execution makes it particularly concerning for storage infrastructure and data center environments where NVMe/TCP is deployed.

Detection Methods for CVE-2023-5178

Indicators of Compromise

  • Unexpected kernel crashes or panics related to the NVMe/TCP subsystem or cryptographic operations
  • Suspicious network traffic patterns to NVMe/TCP target ports (typically port 4420)
  • Anomalous memory access patterns in kernel logs referencing nvmet_tcp or nvme_target modules
  • System instability or unexplained privilege escalation events on systems running NVMe targets

Detection Strategies

  • Monitor kernel logs for signs of memory corruption, including messages related to nvmet_tcp_free_crypto, use-after-free, or double-free errors
  • Implement network intrusion detection rules to identify malformed NVMe/TCP traffic
  • Deploy endpoint detection solutions capable of monitoring kernel-level anomalies and suspicious process behavior
  • Audit systems for the presence of vulnerable kernel versions using package management tools

Monitoring Recommendations

  • Configure centralized logging for kernel messages across all systems running NVMe/TCP services
  • Establish baseline monitoring for NVMe/TCP connection patterns and alert on deviations
  • Implement file integrity monitoring for kernel modules related to NVMe/TCP functionality
  • Regularly review system call traces and memory allocation patterns on critical storage infrastructure

How to Mitigate CVE-2023-5178

Immediate Actions Required

  • Update the Linux kernel to a patched version as soon as vendor patches become available
  • If immediate patching is not possible, consider disabling NVMe/TCP target functionality until a fix can be applied
  • Restrict network access to NVMe/TCP target services to trusted hosts and networks only
  • Monitor systems for signs of exploitation while awaiting patch deployment

Patch Information

Multiple vendors have released security updates to address this vulnerability. The Linux kernel community has addressed the issue through a patch discussed on the kernel.org mailing list.

For Red Hat Enterprise Linux users, numerous security advisories have been published including RHSA-2023:7370, RHSA-2023:7379, RHSA-2023:7418, and additional updates through 2024. Refer to the Red Hat CVE page for the complete list of applicable advisories.

NetApp customers should review NetApp Security Advisory NTAP-20231208-0004 for guidance on affected products. Debian users can find relevant information in the Debian LTS Announcement.

Workarounds

  • Disable the nvmet_tcp kernel module if NVMe over TCP target functionality is not required using modprobe -r nvmet_tcp
  • Implement strict firewall rules to limit access to NVMe/TCP services to only trusted management networks
  • Deploy network segmentation to isolate storage infrastructure from general network traffic
  • Consider using alternative storage protocols until the kernel can be patched
bash
# Disable NVMe/TCP target module
sudo modprobe -r nvmet_tcp

# Prevent module from loading on boot
echo "blacklist nvmet_tcp" | sudo tee /etc/modprobe.d/disable-nvmet-tcp.conf

# Apply firewall rules to restrict NVMe/TCP access (example using iptables)
sudo iptables -A INPUT -p tcp --dport 4420 -s trusted_network/24 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 4420 -j DROP

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

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability9.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Red Hat Security Advisory RHSA-2023:7370

  • Red Hat Security Advisory RHSA-2023:7379

  • Red Hat Security Advisory RHSA-2023:7418

  • Red Hat Security Advisory RHSA-2023:7548

  • Red Hat Security Advisory RHSA-2023:7549

  • Red Hat Security Advisory RHSA-2023:7551

  • Red Hat Security Advisory RHSA-2023:7554

  • Red Hat Security Advisory RHSA-2023:7557

  • Red Hat Security Advisory RHSA-2023:7559

  • Red Hat Security Advisory RHSA-2024:0340

  • Red Hat Security Advisory RHSA-2024:0378

  • Red Hat Security Advisory RHSA-2024:0386

  • Red Hat Security Advisory RHSA-2024:0412

  • Red Hat Security Advisory RHSA-2024:0431

  • Red Hat Security Advisory RHSA-2024:0432

  • Red Hat Security Advisory RHSA-2024:0461

  • Red Hat Security Advisory RHSA-2024:0554

  • Red Hat Security Advisory RHSA-2024:0575

  • Red Hat Security Advisory RHSA-2024:1268

  • Red Hat Security Advisory RHSA-2024:1269

  • Red Hat Security Advisory RHSA-2024:1278

  • Red Hat CVE Data CVE-2023-5178

  • Red Hat Bug Report #2241924

  • Debian LTS Announcement January 2024

  • NetApp Security Advisory NTAP-20231208-0004
  • Vendor Resources
  • Kernel Community Discussion on Linux NVMe
  • Related CVEs
  • CVE-2026-23427: Linux Kernel Use-After-Free Vulnerability

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

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

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