Bug 2219809 (CVE-2023-32258, ZDI-23-706, ZDI-CAN-20796) - CVE-2023-32258 kernel: ksmbd: session race condition remote code execution vulnerability
Summary: CVE-2023-32258 kernel: ksmbd: session race condition remote code execution vu...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2023-32258, ZDI-23-706, ZDI-CAN-20796
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2190273
TreeView+ depends on / blocked
 
Reported: 2023-07-05 12:43 UTC by Mauro Matteo Cascella
Modified: 2023-07-05 13:39 UTC (History)
42 users (show)

Fixed In Version: kernel 6.4-rc1
Doc Type: ---
Doc Text:
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 SMB2_LOGOFF and SMB2_CLOSE 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.
Clone Of:
Environment:
Last Closed: 2023-07-05 12:43:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2023-07-05 12:43:07 UTC
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 SMB2_LOGOFF and SMB2_CLOSE 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-20796/

Comment 1 Mauro Matteo Cascella 2023-07-05 12:43:31 UTC
Upstream fix:
https://github.com/torvalds/linux/commit/abcc506a9a71976a8b4c9bf3ee6efd13229c1e19


Note You need to log in before you can comment on or make changes to this bug.