]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix transform header validation
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 29 Sep 2021 10:52:51 +0000 (19:52 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Sep 2021 14:58:07 +0000 (09:58 -0500)
commit43bacdb9fb7a176ebba281a29a285c5509267485
tree4bcef9d5c21d7f237dfae029ae3b1994bb82f132
parent17862c0c0c9146f89eb623926b37d7ff0c7e483e
ksmbd: fix transform header validation

Validate that the transform and smb request headers are present
before checking OriginalMessageSize and SessionId fields.

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