Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2023-5178: Use-after-free in Linux kernel NVMe/TCP crypto cleanup

Published Nov 1, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS8.0%96th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
NetAppLinuxRed Hat
IdentifiersCVE-2023-5178CWE-416 · Use After Free

CVE-2023-5178 is a use-after-free vulnerability in the Linux kernel NVMe/TCP target subsystem. A logical error in nvmet_tcp_free_crypto can cause use-after-free and double-free conditions during cryptographic resource cleanup. The vulnerability affects systems using NVMe over TCP and may allow a low-privileged attacker to achieve remote code execution or local privilege escalation.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation may enable unauthorized code execution or local privilege escalation, with potentially high impacts on confidentiality, integrity, and availability. Kernel memory corruption may also cause system crashes and denial of service.

Mitigation

If you can’t patch tonight, do this now.

Red Hat states that no standalone mitigation meeting its product-security criteria is available.

Remediation

Patch, then assume compromise.

Install the vendor-fixed kernel or kernel-rt packages for the applicable distribution and support stream, then reboot into the updated kernel. For RHEL 8, RHSA-2023:7549 supplies kernel 4.18.0-513.9.1.el8_9, and RHSA-2023:7548 supplies kernel-rt 4.18.0-513.9.1.rt7.311.el8_9. RHEL 9 kernel fixes are included in RHSA-2024:0461. Supported RHEL deployments can alternatively apply the matching vendor-provided kpatch live patch, including those supplied through RHSA-2023:7554, RHSA-2023:7418, RHSA-2024:0340, and RHSA-2024:0386. Select updates according to the exact product, kernel build, and support channel; fixed versions differ across streams.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2023-5178This repository provides a full exploit for CVE-2023-5178, a logic error in the Linux kernel's NVMe-oF-TCP driver that leads to a racy double-free in kmalloc-96, enabling local privilege escalation (LPE). The exploit is tailored for Ubuntu 23.10 with kernel 6.5.0-9-generic but can be adapted to other v6/v5 kernels. The structure includes: - `src/xpl.c`: The main exploit, which orchestrates the attack by manipulating kernel memory via crafted NVMe-oF-TCP PDUs, FUSE filesystem operations, and ROP chains to achieve LPE. - `src/poc.c`: A proof-of-concept that triggers the vulnerability to test if a system is affected (causes a crash if vulnerable). - `src/fuse.c`: Implements a FUSE filesystem used as part of the exploitation process to control memory layout and synchronization. - `src/pdu.h` and `src/crc32c.h`: Protocol and utility headers for NVMe-oF-TCP packet crafting and CRC calculations. - `cat_nvme.sh` and `start_nvme.sh`: Shell scripts to assist with kernel module setup and information gathering. - `Makefile`: Build instructions for the exploit and PoC. The exploit requires the target to be running a vulnerable kernel with NVMe-oF-TCP enabled and configured. It uses both local and network attack vectors: the attacker must be able to connect to the NVMe-oF-TCP service (default port 4420) on the target, and local code execution is required to run the exploit. The payload manipulates kernel memory to gain root privileges. The repository is well-structured, with clear separation between the PoC, full exploit, and setup scripts.rockrid3r · Disclosed Feb 5, 2024 · c · bash · local · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
NetAppActiveiq Unified Managerapplication
NetAppSolidfire & Hci Management Nodeapplication
NetAppSolidfire & Hci Storage Nodeapplication
Red HatRed Hat Enterprise Linuxoperating_system
FAQ

Frequently asked questions

Is CVE-2023-5178 exploited in the wild?
As of Oct 23, 2026, Mallory has no reports of CVE-2023-5178 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-5178?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-5178, the earliest disclosed Feb 5, 2024.
Is there a patch for CVE-2023-5178?
Install the vendor-fixed kernel or kernel-rt packages for the applicable distribution and support stream, then reboot into the updated kernel. For RHEL 8, RHSA-2023:7549 supplies kernel 4.18.0-513.9.1.el8_9, and RHSA-2023:7548 supplies kernel-rt 4.18.0-513.9.1.rt7.311.el8_9.
What products are affected by CVE-2023-5178?
Linux Kernel, NetApp Activeiq Unified Manager, Red Hat Enterprise Linux, NetApp Solidfire & Hci Management Node, and NetApp Solidfire & Hci Storage Node.
How severe is CVE-2023-5178?
CVE-2023-5178 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 8.0% (96th percentile) as of Oct 23, 2026.
Activity feed

Recent activity

32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Oct 23, 2026Rocky Linux 9.2 [CIQ] Security Update: bpftool / kernel / kern... | Tenable®A vulnerability affecting kernel packages in Rocky Linux 9.2, addressed by CIQ advisory ciqsa-2026_1665 for CIQ FIPS 9.2 Certified. The reference does not describe its technical mechanism. Nessus checks package versions rather than testing the vulnerability.Read more ↗tenable nessus pluginsNews · Oct 23, 2026Rocky Linux 8.10 [CIQ] Security Update: bpftool / kernel / ker... | Tenable®A vulnerability addressed by the advisory's kernel package updates. No vulnerability-specific technical details are supplied.Read more ↗tenable nessus pluginsNews · Oct 18, 2026CentOS Linux 8.5 [TuxCare] Security Update: bpftool / kernel /... | Tenable®Referenced by a CentOS 8.5 local security check. Its attributed CVSS v3 vector describes network exploitation requiring low privileges and no user interaction, with high confidentiality, integrity, and availability impacts. The temporal vector indicates proof-of-concept exploit maturity and an official fix.Read more ↗tenable nessus pluginsNews · Oct 18, 2026CentOS Linux 8.4 [TuxCare] Security Update: bpftool / kernel /... | Tenable®Referenced by the CentOS 8.4 security check as the source of a CVSS v3 vector indicating network access, low complexity, low privileges, no user interaction, and high confidentiality, integrity, and availability impacts. The temporal vector indicates proof-of-concept exploit maturity and an official fix.Read more ↗
+27 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.