---
id: CVE-2023-5178
title: >-
  A 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
summary: >-
  A 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 dou…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-416
  - CWE-416
vendor: netapp
product: active_iq_unified_manager
affected:
  - 'linux_kernel >= 5.0, < 5.4.260'
  - 'linux_kernel >= 5.5, < 5.10.199'
  - 'linux_kernel >= 5.11, < 5.15.137'
  - 'linux_kernel >= 5.16, < 6.1.60'
  - 'linux_kernel >= 6.2, < 6.5.9'
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - active_iq_unified_manager
  - solidfire_&_hci_management_node
  - solidfire_&_hci_storage_node
patched:
  - linux_kernel 6.5.9
published: '2023-11-01'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:17:19.140'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-5178'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:7370'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7379'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7418'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7548'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7549'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7551'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7554'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7557'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7559'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0340'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0378'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0386'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0412'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0431'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0432'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0461'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0554'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:0575'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:1268'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:1269'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:1278'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2023-5178'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2241924'
    label: secalert@redhat.com
  - url: >-
      https://lore.kernel.org/linux-nvme/20231002105428.226515-1-sagi@grimberg.me/
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2023:7370'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7379'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7418'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7548'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7549'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7551'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7554'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7557'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2023:7559'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0340'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0378'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0386'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0412'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0431'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0432'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0461'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0554'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:0575'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:1268'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:1269'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2024:1278'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/security/cve/CVE-2023-5178'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2241924'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/01/msg00005.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lore.kernel.org/linux-nvme/20231002105428.226515-1-sagi@grimberg.me/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20231208-0004/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-613116.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-794697.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - exploit-available
epss: 0.09536
epssPercentile: 0.95393
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/rockrid3r/CVE-2023-5178'
  checkedAt: '2026-10-14T23:00:36.689Z'
exploitAvailable: true
ingestedAt: '2026-10-14T23:00:02.006Z'
---

## Overview

A 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.

## Affected

- `linux_kernel >= 5.0, < 5.4.260`
- `linux_kernel >= 5.5, < 5.10.199`
- `linux_kernel >= 5.11, < 5.15.137`
- `linux_kernel >= 5.16, < 6.1.60`
- `linux_kernel >= 6.2, < 6.5.9`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `active_iq_unified_manager`
- `solidfire_&_hci_management_node`
- `solidfire_&_hci_storage_node`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.5.9`
