cve.bz

CVE-2023-5178 Use After Free

8.8 highEPSS 9.6%Fix available

High (8.8). EPSS 9.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
9.6% (unchanged from 9.6% a week ago; 9.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.0-513.9.1.rt7.311.el8_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.0-513.9.1.el8_9
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:4.18.0-193.128.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:4.18.0-193.128.1.rt13.179.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:4.18.0-193.128.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions: fixed in 0:4.18.0-193.128.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:4.18.0-305.114.1.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service: fixed in 0:4.18.0-305.114.1.rt7.190.el8_4
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux, Alpaquita: fixed package versions per release
  • Patch: https://lore.kernel.org/linux-nvme/20231002105428.226515-1-sagi@grimberg.me/
  • Vendor advisory: https://lore.kernel.org/linux-nvme/20231002105428.226515-1-sagi@grimberg.me/

Ask an AI about this CVE

Show the promptExplain CVE-2023-5178 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5178?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5178?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5178 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-5178

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-5178](https://cve.bz/cve/badge/CVE-2023-5178.svg)](https://cve.bz/cve/CVE-2023-5178)

HTML:

<a href="https://cve.bz/cve/CVE-2023-5178"><img src="https://cve.bz/cve/badge/CVE-2023-5178.svg" alt="CVE-2023-5178"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.0-513.9.1.rt7.311.el8_9
Red Hat Enterprise Linux 80:4.18.0-513.9.1.el8_9
Red Hat Enterprise Linux 8.2 Advanced Update Support0:4.18.0-193.128.1.el8_2
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:4.18.0-193.128.1.rt13.179.el8_2
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:4.18.0-193.128.1.el8_2
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions0:4.18.0-193.128.1.el8_2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:4.18.0-305.114.1.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:4.18.0-305.114.1.rt7.190.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:4.18.0-305.114.1.el8_4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:4.18.0-305.114.1.el8_4
Red Hat Enterprise Linux 8.6 Extended Update Support0:4.18.0-372.87.1.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support0:4.18.0-477.43.1.el8_8
Red Hat Enterprise Linux 90:5.14.0-362.18.1.el9_3
Red Hat Enterprise Linux 9.0 Extended Update Support0:5.14.0-70.85.1.el9_0
Red Hat Enterprise Linux 9.0 Extended Update Support0:5.14.0-70.85.1.rt21.156.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:5.14.0-284.40.1.el9_2
Red Hat Enterprise Linux 9.2 Extended Update Support0:5.14.0-284.40.1.rt14.325.el9_2
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.18.0-372.87.1.el8_6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux-5.105.10.205-2~deb10u1DLA-3711-1
Debian11linux5.10.205-2DSA-5594-1
Debian12linux6.1.64-1DEBIAN-CVE-2023-5178
Debian13, 14linux6.5.8-1DEBIAN-CVE-2023-5178
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-5178
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-5178
Ubuntu20.04:LTSlinux5.4.0-169.187UBUNTU-CVE-2023-5178 USN-6548-1
Ubuntu20.04:LTSlinux-aws5.4.0-1116.126UBUNTU-CVE-2023-5178 USN-6548-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1051.56~20.04.1UBUNTU-CVE-2023-5178 USN-6549-1
Ubuntu20.04:LTSlinux-azure5.4.0-1121.128UBUNTU-CVE-2023-5178 USN-6548-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1053.61~20.04.1UBUNTU-CVE-2023-5178 USN-6549-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1053.61~20.04.1.1USN-6549-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1076.82UBUNTU-CVE-2023-5178 USN-6548-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1120.129UBUNTU-CVE-2023-5178 USN-6548-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1048.56~20.04.1UBUNTU-CVE-2023-5178 USN-6549-5
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-5178
55 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-513_5_1, kpatch-patch-4_18_0-513_5_1-debuginfo, kpatch-patch-4_18_0-513_5_1-debugsource0:1-1.el8_9RHSA-2023:7554
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-513.9.1.el8_9RHSA-2023:7549
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-513.9.1.el8_9RHSA-2023:7549
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-513.9.1.rt7.311.el8_9RHSA-2023:7548
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-513.9.1.rt7.311.el8_9RHSA-2023:7548
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 24 more0:5.14.0-362.18.1.el9_3RHSA-2024:0461
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.2.0-362.18.1.el9_3RHSA-2024:0461
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.2.0-362.18.1.el9_3RHSA-2024:0461
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 41 more0:5.14.0-362.18.1.el9_3RHSA-2024:0461
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-362_13_1, kpatch-patch-5_14_0-362_13_1-debuginfo, kpatch-patch-5_14_0-362_13_1-debugsource0:1-1.el9_3RHSA-2024:0340
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-362_8_1, kpatch-patch-5_14_0-362_8_1-debuginfo, kpatch-patch-5_14_0-362_8_1-debugsource0:1-2.el9_3RHSA-2024:0340
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 12 more0:5.14.0-362.18.1.el9_3RHSA-2024:0461
50 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.97.1SUSE-SU-2023:4378-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.36.1SUSE-SU-2023:4375-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_151-150400.1.3.1SUSE-SU-2023:4351-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_510-150400.2.1SUSE-SU-2024:0331-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_156-150400.2.1SUSE-SU-2024:0395-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_184-150400.2.1SUSE-SU-2024:0421-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_193-150400.2.1SUSE-SU-2024:0378-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_201-150400.9.3.2SUSE-SU-2023:4378-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_811-150400.2.2SUSE-SU-2024:0414-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_16-150500.2.1SUSE-SU-2024:0331-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_54-150500.2.1SUSE-SU-2024:0348-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_71-150500.11.3.1SUSE-SU-2023:4343-1
17 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.97.1SUSE-SU-2023:4378-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.72.1SUSE-SU-2023:4345-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.59.1SUSE-SU-2023:4351-1
openSUSELeap 15.4, Leap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.97.1.150400.24.44.2SUSE-SU-2023:4378-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.36.1SUSE-SU-2023:4375-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.23.1SUSE-SU-2023:4414-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.36.1.150500.6.15.3SUSE-SU-2023:4375-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.24.1SUSE-SU-2023:4343-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.97.1SUSE-SU-2023:4378-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.59.1SUSE-SU-2023:4351-1
AlmaLinux8perf, kernel, bpftool and 21 more4.18.0-513.9.1.el8_9ALSA-2023:7549
Rocky Linux8kernel0:4.18.0-513.9.1.el8_9RLSA-2023:7549
Rocky Linux8kernel0:4.18.0-513.9.1.el8_9.cloudRXSA-2023:7549
Rocky Linux8kernel-rt0:4.18.0-513.9.1.rt7.311.el8_9RLSA-2023:7548
Azure Linux2hyperv-daemons5.15.137.1-1AZL-31777
Azure Linux2kernel5.15.138.1-4AZL-31852
Alpaquitastreamlinux-lts6.1.60-r0BELL-CVE-2023-5178

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is actual only for systems where NVME over TCP being used.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-513.9.1.rt7.311.el8_9Fixed 2023-11-28RHSA-2023:7548
Red Hat Enterprise Linux 8kernel-0:4.18.0-513.9.1.el8_9Fixed 2023-11-28RHSA-2023:7549
Red Hat Enterprise Linux 8kpatch-patchFixed 2023-11-28RHSA-2023:7554
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.128.1.el8_2Fixed 2024-03-12RHSA-2024:1268
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-rt-0:4.18.0-193.128.1.rt13.179.el8_2Fixed 2024-03-12RHSA-2024:1269
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-0:4.18.0-193.128.1.el8_2Fixed 2024-03-12RHSA-2024:1268
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskernel-0:4.18.0-193.128.1.el8_2Fixed 2024-03-12RHSA-2024:1268
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskpatch-patchFixed 2024-03-12RHSA-2024:1278
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.114.1.el8_4Fixed 2023-11-28RHSA-2023:7557
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-rt-0:4.18.0-305.114.1.rt7.190.el8_4Fixed 2023-11-28RHSA-2023:7551
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-0:4.18.0-305.114.1.el8_4Fixed 2023-11-28RHSA-2023:7557
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionskernel-0:4.18.0-305.114.1.el8_4Fixed 2023-11-28RHSA-2023:7557
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionskpatch-patchFixed 2023-11-28RHSA-2023:7559
Red Hat Enterprise Linux 8.6 Extended Update Supportkpatch-patchFixed 2024-01-23RHSA-2024:0378
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.87.1.el8_6Fixed 2024-01-25RHSA-2024:0412
Red Hat Enterprise Linux 8.8 Extended Update Supportkpatch-patchFixed 2024-01-30RHSA-2024:0554
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-5178.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-15Siemens SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilitiesnone listednone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON