# CVE-2023-5178: Kernel: use after free in nvmet_tcp_free_crypto in nvme

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 9.93%, higher than 95% of CVEs (2026-12-01)
- Published: 2023-11-01T16:32:20.350Z
- Modified: 2026-11-26T13:23:19.405Z
- Weaknesses: CWE-416
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- kernel-rt: no versions given (not affected: from 0:4.18.0-513.9.1.rt7.311.el8_9 before *; from 0:4.18.0-193.128.1.rt13.179.el8_2 before *; from 0:4.18.0-305.114.1.rt7.190.el8_4 before *; from 0:5.14.0-70.85.1.rt21.156.el9_0 before *; from 0:5.14.0-284.40.1.rt14.325.el9_2 before *)
- kernel: no versions given (not affected: from 0:4.18.0-513.9.1.el8_9 before *; from 0:4.18.0-193.128.1.el8_2 before *; from 0:4.18.0-305.114.1.el8_4 before *; from 0:4.18.0-372.87.1.el8_6 before *; from 0:4.18.0-477.43.1.el8_8 before *; from 0:5.14.0-362.18.1.el9_3 before *; from 0:5.14.0-70.85.1.el9_0 before *; from 0:5.14.0-284.40.1.el9_2 before *)
- kpatch-patch: no versions given
- linux linux_kernel: from 5.0 before 5.4.260; from 5.5 before 5.10.199; from 5.11 before 5.15.137; from 5.16 before 6.1.60; from 6.2 before 6.5.9
- redhat enterprise_linux: 8.0; 9.0
- netapp active_iq_unified_manager: no versions given
- netapp solidfire_&_hci_management_node: no versions given
- netapp solidfire_&_hci_storage_node: no versions given

## Every score

- redhat: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2023:7370> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7379> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7418> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7548> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7549> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7551> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7554> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7557> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7559> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0340> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0378> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0386> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0412> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0431> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0432> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0461> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0554> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0575> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1268> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1269> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1278> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-5178> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2241924> (issue-tracking, third-party-advisory)
- <https://lore.kernel.org/linux-nvme/20231002105428.226515-1-sagi@grimberg.me/> (mailing-list, patch, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/01/msg00005.html>
- <https://security.netapp.com/advisory/ntap-20231208-0004/>
- <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Sources

- CVE List: [CVE-2023-5178](https://www.cve.org/CVERecord?id=CVE-2023-5178), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2023-5178](https://nvd.nist.gov/vuln/detail/CVE-2023-5178), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2023-5178 · Whole record: https://cve.day/CVE-2023-5178.json · Rebuilt by cve.day 2026-11-26T13:32:21.459Z
