summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-06-15 22:05:29 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 11:12:18 +0200
commit854156d12caa9d36de1cf5f084591c7686cc8a9d (patch)
tree1f054e6cecf337fa0dde295b30e246718e94e002 /tools
parentc86211159bc3178b891e0d60e586a32c7b6a231b (diff)
downloadlinux-854156d12caa9d36de1cf5f084591c7686cc8a9d.tar.gz
ksmbd: validate session id and tree id in the compound request
commit 5005bcb4219156f1bf7587b185080ec1da08518e upstream.

This patch validate session id and tree id in compound request.
If first operation in the compound is SMB2 ECHO request, ksmbd bypass
session and tree validation. So work->sess and work->tcon could be NULL.
If secound request in the compound access work->sess or tcon, It cause
NULL pointer dereferecing error.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-21165
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions