CVE-2023-5345 Use-after-free in Linux kernel's fs/smb/client component
A use-after-free in the Linux kernel SMB client allows local attackers to escalate privileges via a double free condition.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-5345?
CVE-2023-5345 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 3 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-416
Which versions are affected by CVE-2023-5345?
It affects 2 products.
Products include Fedoraproject Fedora, Linux kernel.
How do I fix CVE-2023-5345?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-5345 being exploited?
There is no known exploitation of CVE-2023-5345 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-31149, AZL-31730, BELL-CVE-2023-5345, DEBIAN-CVE-2023-5345, GHSA-g488-m495-9mgj, UBUNTU-CVE-2023-5345.