ksmbd: add buffer validation in session setup
authorMarios Makassikis <mmakassikis@freebox.fr>
Tue, 19 Oct 2021 15:39:38 +0000 (17:39 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 20 Oct 2021 05:07:10 +0000 (00:07 -0500)
commit0d994cd482ee4e8e851388a70869beee51be1c54
treee98bc353a8868688bbc9ea4a3c10ad199991a46f
parent621be84a9d1fbf0097fd058e249ec5cc4f35f3c5
ksmbd: add buffer validation in session setup

Make sure the security buffer's length/offset are valid with regards to
the packet length.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/auth.c
fs/ksmbd/smb2pdu.c