Advisory Details

May 17th, 2023

Linux Kernel ksmbd Session Race Condition Remote Code Execution Vulnerability

ZDI-23-698
ZDI-CAN-20481

CVE ID CVE-2023-32250
CVSS SCORE 9.0, AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
AFFECTED VENDORS Linux
AFFECTED PRODUCTS Kernel
VULNERABILITY DETAILS

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 SMB2_SESSION_SETUP 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.

ADDITIONAL DETAILS Linux has issued an update to correct this vulnerability. More details can be found at:
https://github.com/torvalds/linux/commit/f5c779b7ddbda30866cf2a27c63e34158f858c73
DISCLOSURE TIMELINE
  • 2023-05-01 - Vulnerability reported to vendor
  • 2023-05-17 - Coordinated public release of advisory
CREDIT Quentin Minster (@thalium_team)
BACK TO ADVISORIES