CVE-2023-52442: critical vulnerability in Linux
ksmbd: validate session id and tree id in compound request
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
A flaw in Linux kernel's ksmbd (SMB server) allows attackers to bypass tree ID validation in compound SMB2 requests. If a specific command is placed first in a compound request, the security check is skipped, potentially allowing unauthorized access to shared resources.
The vulnerability exists in ksmbd's compound request handling where smb2_get_msg() incorrectly returns the first request header instead of the current command header, causing tree ID and session ID validation to be bypassed. An attacker can craft a compound SMB2 request with SMB2_TREE_CONNECT_HE as the first command to skip tree ID validation, potentially gaining unauthorized access to SMB shares.
In the same product, most dangerous first.