cve.bz

CVE-2023-5345 Use After Free

7.8 highEPSS 0.5%Fix available

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

On this page
A use-after-free vulnerability in the Linux kernel's fs/smb/client component can be exploited to achieve local privilege escalation. In case of an error in smb3_fs_context_parse_param, ctx->password was freed but the field was not set to NULL which could lead to double free. We recommend upgrading past commit e6e43b8aa7cd3c3af686caf0c2e11819a886d705.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-5345 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5345?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5345?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-5345 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux Kernelfrom 0.0 before 6.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.64-1DEBIAN-CVE-2023-5345
Debian13, 14linux6.5.6-1DEBIAN-CVE-2023-5345
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-5345
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2023-5345
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1054.62~20.04.1UBUNTU-CVE-2023-5345 USN-6607-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1054.62~20.04.1.1USN-6607-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-5345
Ubuntu22.04:LTSlinux-aws-6.26.2.0-1016.16~22.04.1UBUNTU-CVE-2023-5345 USN-6502-1
Ubuntu22.04:LTSlinux-aws-6.56.5.0-1010.10~22.04.1UBUNTU-CVE-2023-5345
Ubuntu22.04:LTSlinux-azure5.15.0-1054.62UBUNTU-CVE-2023-5345 USN-6607-1
Ubuntu22.04:LTSlinux-azure-6.2, linux-lowlatency-hwe-6.26.2.0-1017.17~22.04.1UBUNTU-CVE-2023-5345 USN-6502-1 USN-6502-4
Ubuntu22.04:LTSlinux-azure-6.56.5.0-1009.9~22.04.1UBUNTU-CVE-2023-5345
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1054.62.1UBUNTU-CVE-2023-5345 USN-6607-1
Ubuntu22.04:LTSlinux-azure-fde-6.26.2.0-1017.17~22.04.1.1UBUNTU-CVE-2023-5345 USN-6502-4
47 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 24 more0:5.14.0-362.13.1.el9_3RHSA-2023:7749
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.2.0-362.13.1.el9_3RHSA-2023:7749
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.2.0-362.13.1.el9_3RHSA-2023:7749
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 41 more0:5.14.0-362.13.1.el9_3RHSA-2023:7749
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-1.el9_3RHSA-2023:7734
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 12 more0:5.14.0-362.13.1.el9_3RHSA-2023:7749
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-362.13.1.el9_3RHSA-2023:7749
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-362.13.1.el9_3RHSA-2023:7749
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.92.1SUSE-SU-2023:4072-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.31.1SUSE-SU-2023:4071-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_112-150400.2.2SUSE-SU-2023:4848-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_133-150400.2.1SUSE-SU-2023:4775-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_141-150400.1.3.1SUSE-SU-2023:4093-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_211-150400.2.2SUSE-SU-2023:4766-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_118-150400.2.1SUSE-SU-2023:4822-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_155-150400.2.1SUSE-SU-2023:4805-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_164-150400.2.1SUSE-SU-2023:4872-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_183-150400.2.1SUSE-SU-2023:4801-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_191-150400.9.3.1SUSE-SU-2023:4072-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_06-150500.15.1SUSE-SU-2023:4766-1
19 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.92.1SUSE-SU-2023:4072-2
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.69.1SUSE-SU-2023:4057-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.92.1.150400.24.42.1SUSE-SU-2023:4072-2
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.31.1SUSE-SU-2023:4071-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.20.1SUSE-SU-2023:4058-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.31.1.150500.6.13.1SUSE-SU-2023:4071-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.21.1SUSE-SU-2023:4035-1
openSUSETumbleweedkernel-source6.5.6-1.1openSUSE-SU-2024:13305-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1
Rocky Linux9kernel0:5.14.0-362.13.1.el9_3.cloud.0.3RXSA-2023:7749
Azure Linux2hyperv-daemons5.15.135.1-1AZL-31730
Azure Linux2kernel5.15.135.1-2AZL-31149
Alpaquitastreamlinux-lts6.1.56-r0BELL-CVE-2023-5345

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; 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

Red Hat Enterprise Linux minor releases prior to 9.3.0 and Red Hat Enterprise Linux 8 are not affected by this CVE as they did not include the upstream commit that introduced this flaw (a4e430c8c8ba "cifs: replace kfree() with kfree_sensitive() for sensitive data").

Red Hat's mitigation

This flaw can be mitigated by preventing the affected `cifs` kernel module from being loaded. For instructions on how to blacklist a kernel module, please see https://access.redhat.com/solutions/41278.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-362.13.1.el9_3Fixed 2023-12-12RHSA-2023:7749
Red Hat Enterprise Linux 9kpatch-patchFixed 2023-12-12RHSA-2023:7734
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

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

References

Check your stackJSON