CVE-2023-5178: Use-after-free in Linux kernel NVMe/TCP crypto cleanup
- Vendors
- NetAppLinuxRed Hat
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.
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.
Exploits
1 exploit validated by Mallory's analysis.
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.
References
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.
Recent activity
32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.