]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: add validation in smb2 negotiate
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 29 Sep 2021 06:44:32 +0000 (15:44 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Sep 2021 14:58:07 +0000 (09:58 -0500)
commit1e1bd11b77504db7bc45c12b351256da6beb5603
tree75c1a54fba9d05df4b56c6ef34e36873fdb5ee1e
parent13c334a32e358e914089218c1bc996494320eb81
ksmbd: add validation in smb2 negotiate

This patch add validation to check request buffer check in smb2
negotiate and fix null pointer deferencing oops in smb3_preauth_hash_rsp()
that found from manual test.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Cc: Hyunchul Lee <hyc.lee@gmail.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c
fs/ksmbd/smb_common.c