CVE-2023-5345: Use-after-free in Linux kernel's fs/smb/client component
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
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-5345?
The severity of CVE-2023-5345 is high, with a CVSS score of 7.8.
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.
What is the impact of CVE-2023-5345?
CVE-2023-5345 can lead to local privilege escalation.
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.
How can I fix CVE-2023-5345?
We recommend upgrading to a patched version of the Linux kernel to fix CVE-2023-5345.