Kernel: use after free in nvmet_tcp_free_crypto in nvme

Summary

CVECVE-2023-5178
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-11-01 17:15:11 UTC
Updated2026-10-14 22:17:19 UTC
DescriptionA use-after-free vulnerability was found in drivers/nvme/target/tcp.c` in `nvmet_tcp_free_crypto` due to a logical bug in the NVMe/TCP subsystem in the Linux kernel. This issue may allow a malicious user to cause a use-after-free and double-free problem, which may permit remote code execution or lead to local privilege escalation.

Risk And Classification

Primary CVSS: v3.1 8.8 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-416 | CWE-416 Use After Free


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-513.9.1.rt7.311.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:4.18.0-513.9.1.el8_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 0:4.18.0-193.128.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service unaffected 0:4.18.0-193.128.1.rt13.179.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service unaffected 0:4.18.0-193.128.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions unaffected 0:4.18.0-193.128.1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 0:4.18.0-305.114.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:4.18.0-305.114.1.rt7.190.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:4.18.0-305.114.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions unaffected 0:4.18.0-305.114.1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support unaffected 0:4.18.0-372.87.1.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support unaffected 0:4.18.0-477.43.1.el8_8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:5.14.0-362.18.1.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:5.14.0-362.18.1.el9_3 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:5.14.0-70.85.1.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:5.14.0-70.85.1.rt21.156.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:5.14.0-284.40.1.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:5.14.0-284.40.1.rt14.325.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support Not specified Not specified
CNA Red Hat Red Hat Virtualization 4 For Red Hat Enterprise Linux 8 unaffected 0:4.18.0-372.87.1.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
ADP Siemens RUGGEDCOM RST2428P unaffected * custom Not specified
ADP Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 Family unaffected * custom Not specified
ADP Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 Family unaffected * custom Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected V1.1 custom Not specified

References

ReferenceSourceLinkTags
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2024:1268 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
2241924 – (CVE-2023-5178) CVE-2023-5178 kernel: use after free in nvmet_tcp_free_crypto in NVMe af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Third Party Advisory
access.redhat.com/errata/RHSA-2023:7551 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2023:7557 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2023:7559 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
[PATCH] nvmet-tcp: Fix a possible UAF in queue intialization setup - Sagi Grimberg af854a3a-2127-422b-91ae-364da2661108 lore.kernel.org Mailing List, Patch, Vendor Advisory
CVE-2023-5178 Linux Kernel Vulnerability in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
access.redhat.com/errata/RHSA-2023:7548 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
[SECURITY] [DLA 3711-1] linux-5.10 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
access.redhat.com/errata/RHSA-2023:7549 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2024:1278 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-613116.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-794697.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2023:7554 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
access.redhat.com/errata/RHSA-2024:1269 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-10-03T00:00:00.000ZReported to Red Hat.
CNA2023-10-15T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Legacy QID Mappings

  • 161208 Oracle Enterprise Linux Security Update for kernel (ELSA-2023-7549)
  • 161229 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel (ELSA-2023-13044)
  • 161237 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel (ELSA-2023-13043)
  • 161238 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel-container (ELSA-2023-13049)
  • 161239 Oracle Enterprise Linux Security Update for unbreakable enterprise kernel-container (ELSA-2023-13048)
  • 161318 Oracle Enterprise Linux Security Update for kernel (ELSA-2024-12094)
  • 161404 Oracle Enterprise Linux Security Update for kernel (ELSA-2024-0461)
  • 199929 Ubuntu Security Notification for Linux kernel (OEM) Vulnerabilities (USN-6497-1)
  • 199976 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6534-1)
  • 199980 Ubuntu Security Notification for Linux kernel Vulnerability (USN-6536-1)
  • 199982 Ubuntu Security Notification for Linux kernel (GCP) Vulnerability (USN-6537-1)
  • 199996 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6549-1)
  • 199997 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6548-1)
  • 199999 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6548-2)
  • 200002 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6534-2)
  • 200003 Ubuntu Security Notification for Linux kernel (GKE) Vulnerabilities (USN-6549-2)
  • 200006 Ubuntu Security Notification for Linux kernel (Oracle) Vulnerabilities (USN-6548-3)
  • 200007 Ubuntu Security Notification for Linux kernel (Low Latency) Vulnerabilities (USN-6549-3)
  • 200010 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6534-3)
  • 200024 Ubuntu Security Notification for Linux kernel (Intel IoTG) Vulnerabilities (USN-6549-4)
  • 200035 Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-6549-5)
  • 200037 Ubuntu Security Notification for Linux kernel (IoT) Vulnerabilities (USN-6548-5)
  • 200113 Ubuntu Security Notification for Linux kernel (GCP) Vulnerabilities (USN-6635-1)
  • 242482 Red Hat Update for kernel-rt (RHSA-2023:7379)
  • 242497 Red Hat Update for kpatch-patch (RHSA-2023:7418)
  • 242515 Red Hat Update for kernel (RHSA-2023:7557)
  • 242516 Red Hat Update for kernel (RHSA-2023:7549)
  • 242522 Red Hat Update for kpatch-patch (RHSA-2023:7554)
  • 242526 Red Hat Update for kernel-rt (RHSA-2023:7548)
  • 242528 Red Hat Update for kernel-rt (RHSA-2023:7551)
  • 242529 Red Hat Update for kpatch-patch (RHSA-2023:7559)
  • 242612 Red Hat Update for kernel security (RHSA-2023:7370)
  • 242727 Red Hat Update for kpatch-patch (RHSA-2024:0340)
  • 242728 Red Hat Update for kpatch-patch (RHSA-2024:0378)
  • 242738 Red Hat Update for kpatch-patch (RHSA-2024:0386)
  • 242759 Red Hat Update for kernel (RHSA-2024:0432)
  • 242769 Red Hat Update for kpatch-patch (RHSA-2024:0554)
  • 242789 Red Hat Update for kernel (RHSA-2024:0575)
  • 242839 Red Hat Update for kernel (RHSA-2024:0461)
  • 242847 Red Hat Update for kernel-rt (RHSA-2024:0431)
  • 242855 Red Hat Update for kernel (RHSA-2024:0412)
  • 243055 Red Hat Update for kernel (RHSA-2024:1268)
  • 243057 Red Hat Update for kpatch-patch (RHSA-2024:1278)
  • 243058 Red Hat Update for kernel-rt (RHSA-2024:1269)
  • 356572 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2023-040
  • 379614 Alibaba Cloud Linux Security Update for cloud-kernel (ALINUX3-SA-2024:0017)
  • 6000419 Debian Security Update for linux (DSA 5594-1)
  • 6000428 Debian Security Update for linux-5.10 (DLA 3711-1)
  • 673595 EulerOS Security Update for kernel (EulerOS-SA-2023-3247)
  • 673692 EulerOS Security Update for kernel (EulerOS-SA-2023-3275)
  • 673714 EulerOS Security Update for kernel (EulerOS-SA-2024-1196)
  • 755238 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:4378-1)
  • 755240 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:4375-1)
  • 755249 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2023:4414-1)
  • 755563 SUSE Security Update for the linux kernel (SUSE-SU-2023:4351-1)
  • 755566 SUSE Security Update for the linux kernel (SUSE-SU-2023:4345-1)
  • 755567 SUSE Security Update for the linux kernel (SUSE-SU-2023:4343-1)
  • 755706 SUSE Enterprise Linux Security Update for the Linux Kernel RT (Live Patch 3 for SLE 15 SP4) (SUSE-SU-2024:0331-1)
  • 755709 SUSE Enterprise Linux Security Update for the Linux Kernel RT (Live Patch 5 for SLE 15 SP5) (SUSE-SU-2024:0348-1)
  • 755714 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 3 for SLE 15 SP5) (SUSE-SU-2024:0352-1)
  • 755715 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 5 for SLE 15 SP5) (SUSE-SU-2024:0378-1)
  • 755718 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 6 for SLE 15 SP5) (SUSE-SU-2024:0395-1)
  • 755726 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 8 for SLE 15 SP4) (SUSE-SU-2024:0414-1)
  • 755728 SUSE Enterprise Linux Security Update for the Linux Kernel (Live Patch 7 for SLE 15 SP4) (SUSE-SU-2024:0421-1)
  • 907626 Common Base Linux Mariner (CBL-Mariner) Security Update for hyperv-daemons (31777-1)
  • 907632 Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (31852)
  • 907677 Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (31852-1)
  • 941482 AlmaLinux Security Update for kernel (ALSA-2023:7549)
  • 961087 Rocky Linux Security Update for kernel-rt (RLSA-2023:7548)
  • 961089 Rocky Linux Security Update for kernel (RLSA-2023:7549)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report