CVE-2023-5345 json
Use-after-free in Linux kernel's fs/smb/client component
published 2023-10-03 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-57662
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Kernel 6.6
- linux Debian 12 6.1.64-1
- linux Debian 14, Debian 13 6.5.6-1
debian advisories DEBIAN-CVE-2023-5345
- linux-azure Ubuntu 22.04 LTS 5.15.0-1054.62
- linux-raspi Ubuntu 24.04 LTS 6.7.0-1001.1
- linux-aws-6.2 Ubuntu 22.04 LTS 6.2.0-1016.16~22.04.1
- linux-aws-6.5 Ubuntu 22.04 LTS 6.5.0-1010.10~22.04.1
- linux-gcp-6.2 Ubuntu 22.04 LTS 6.2.0-1019.21~22.04.1
- linux-hwe-6.2 Ubuntu 22.04 LTS 6.2.0-37.38~22.04.1
- linux-oem-6.1 Ubuntu 22.04 LTS 6.1.0-1025.25
- linux-oem-6.5 Ubuntu 22.04 LTS 6.5.0-1008.8
ubuntu advisories UBUNTU-CVE-2023-5345
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-362.13.1.el9_3
- rv RHEL 9 5.14.0-362.13.1.el9_3
- perf RHEL 9 5.14.0-362.13.1.el9_3
- rtla RHEL 9 5.14.0-362.13.1.el9_3
- bpftool RHEL 9 7.2.0-362.13.1.el9_3
- libperf RHEL 9 5.14.0-362.13.1.el9_3
- kernel-rt RHEL 9 5.14.0-362.13.1.el9_3
- kernel-64k RHEL 9 5.14.0-362.13.1.el9_3
red hat advisories RHSA-2023:7749RHSA-2023:7734
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +4 more 5.14.21-150500.55.31.1
- kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.31.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.31.1
suse advisories SUSE-SU-2023:4872-1SUSE-SU-2023:4863-1SUSE-SU-2023:4848-1SUSE-SU-2023:4841-1SUSE-SU-2023:4822-1SUSE-SU-2023:4805-1
- kernel-source openSUSE Tumbleweed 6.5.6-1.1
- kernel-source openSUSE Tumbleweed 6.6.17-1.1
opensuse advisories openSUSE-SU-2024:13305-1openSUSE-SU-2024:13704-1
- kernel Rocky Linux 9 5.14.0-362.13.1.el9_3.cloud.0.3
rocky linux advisories RXSA-2023:7749
- kernel CBL-Mariner 2.0 5.15.135.1-2
- hyperv-daemons CBL-Mariner 2.0 5.15.135.1-1
azure linux advisories AZL-31149AZL-31730
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-5345 updated cvss 7.8
kernel: use-after-free vulnerability in the smb client component
-
Red Hat CodeReady Linux Builder (v. 9) libperf 5.14.0-362.13.1.el9_3, kernel-debuginfo-common-s390x 5.14.0-362.13.1.el9_3, kernel-debuginfo-common-x86_64 5.14.0-362.13.1.el9_3, kernel-debuginfo-common-aarch64 5.14.0-362.13.1.el9_3, kernel-debuginfo-common-ppc64le 5.14.0-362.13.1.el9_3 Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-362.13.1.el9_3, perf 5.14.0-362.13.1.el9_3, rtla 5.14.0-362.13.1.el9_3, kernel-devel-matched 5.14.0-362.13.1.el9_3, kernel-64k-devel-matched 5.14.0-362.13.1.el9_3, kernel-debug-devel-matched 5.14.0-362.13.1.el9_3, +6 more Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.2.0-362.13.1.el9_3, kernel 5.14.0-362.13.1.el9_3, kernel-64k 5.14.0-362.13.1.el9_3, kernel-core 5.14.0-362.13.1.el9_3, kernel-tools 5.14.0-362.13.1.el9_3, python3-perf 5.14.0-362.13.1.el9_3, +29 more Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-362.13.1.el9_3, kernel-rt-core 5.14.0-362.13.1.el9_3, kernel-rt-modules 5.14.0-362.13.1.el9_3, kernel-rt-debug-core 5.14.0-362.13.1.el9_3, kernel-rt-modules-core 5.14.0-362.13.1.el9_3, kernel-rt-debug-modules 5.14.0-362.13.1.el9_3, +4 more Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-362.13.1.el9_3, kernel-rt-kvm 5.14.0-362.13.1.el9_3, kernel-rt-core 5.14.0-362.13.1.el9_3, kernel-rt-modules 5.14.0-362.13.1.el9_3, kernel-rt-debug-kvm 5.14.0-362.13.1.el9_3, kernel-rt-debug-core 5.14.0-362.13.1.el9_3, +6 morefixed: vendor fix RHSA-2023:7749
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Kernel
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6e43b8aa7cd3c3af686caf0c2e11819a886d705
patch, mailing-list
-
kernel.dance
/e6e43b8aa7cd3c3af686caf0c2e11819a886d705
mailing-list, patch
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/V5PDNWPKAP3WL5RQZ4RIDS6MG32OHH5R/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/GISYSL3F6WIEVGHJGLC2MFNTUXHPTKQH/
mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/GPMICQ2HVZO5UAM5KPXHAZKA2U3ZDOO6/
mailing-list
-
packetstormsecurity.com
/files/177029/Kernel-Live-Patch-Security-Notice-LSN-0100-1.html
third-party-advisory, vdb-entry
Sources
- CVE List CVE-2023-5345
- NVD CVE-2023-5345
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.