CVE-2023-32257: Linux Kernel ksmbd Session Race Condition Remote Code Execution Vulnerability
A flaw was found in the Linux kernel's ksmbd, a high-performance in-kernel SMB server. The specific flaw exists within the processing of SMB2SESSIONSETUP and SMB2LOGOFF commands. The issue results from the lack of proper locking when performing operations on an object. An attacker can leverage this vulnerability to execute code in the context of the kernel.
Other sources
An improper locking issue leading to a race condition vulnerability was found in ksmbd, a high-performance in-kernel SMB server. Quoting ZDI security advisory [1]:
"This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability, but only systems with ksmbd enabled are vulnerable.
The specific flaw exists within the processing of SMB2SESSIONSETUP and SMB2LOGOFF commands. The issue results from the lack of proper locking when performing operations on an object. An attacker can leverage this vulnerability to execute code in the context of the kernel."
[1] https://www.zerodayinitiative.com/advisories/ZDI-CAN-20596/
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2023-32257?
CVE-2023-32257 has been classified with a high severity due to its potential impact on system security.
How do I fix CVE-2023-32257?
To resolve CVE-2023-32257, update to kernel versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, 6.12.11-1 or higher.
Which software is affected by CVE-2023-32257?
CVE-2023-32257 affects multiple versions of the Linux kernel, specifically those from 5.15 up to 6.3.9.
What type of vulnerability is CVE-2023-32257?
CVE-2023-32257 is a locking vulnerability that occurs during the processing of SMB2_SESSION_SETUP and SMB2_LOGOFF commands.
Can CVE-2023-32257 be exploited remotely?
Yes, CVE-2023-32257 can potentially be exploited remotely due to its nature in handling SMB commands.