CVE-2023-5345: Use-after-free in Linux kernel's fs/smb/client component

Published Oct 3, 2023
·
Updated

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 smb3fscontextparseparam, ctx->password was freed but the field was not set to NULL which could lead to double free.

We recommend upgrading past commit e6e43b8aa7cd3c3af686caf0c2e11819a886d705.

Other sources

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a use-after-free flaw in the smb3fscontextparseparam function in the fs/smb/client component. By sending a specially crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges.

IBM

Affected Software

12 affected componentsFixes available
redhat/kernel<6.6
6.6
IBM Security Guardium<=12.0
Linux Linux kernel<6.6
Linux Linux kernel=6.6-rc1
Linux Linux kernel=6.6-rc2
Linux Linux kernel=6.6-rc3
Linux Linux kernel>=6.0.16<6.1.56
Linux Linux kernel>=6.2<6.5.6
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Fedoraproject Fedora=39
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Oct 3, 2023
CVE Published
via MITRE·02:33 AM
Data Sourced
via MITRE·02:33 AM
DescriptionSeverityWeakness
Oct 4, 2023
Data Sourced
via Red Hat·05:59 PM
DescriptionSeverityAffected Software
Feb 17, 2024
Data Sourced
via Launchpad·12:50 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·02:16 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-5345?

The severity of CVE-2023-5345 is high, with a CVSS score of 7.8.

2

How can the use-after-free vulnerability in the Linux kernel's fs/smb/client component be exploited?

The use-after-free vulnerability can be exploited to achieve local privilege escalation.

3

What is the impact of CVE-2023-5345?

CVE-2023-5345 can lead to local privilege escalation.

4

Which versions of the Linux kernel are affected by CVE-2023-5345?

Linux kernel versions 6.6, 6.6-rc1, 6.6-rc2, and 6.6-rc3 are affected by CVE-2023-5345.

5

How can I fix CVE-2023-5345?

We recommend upgrading to a patched version of the Linux kernel to fix CVE-2023-5345.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203