]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: add validation for FILE_FULL_EA_INFORMATION of smb2_get_info
authorNamjae Jeon <linkinjeon@kernel.org>
Sat, 18 Sep 2021 09:45:12 +0000 (18:45 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 18 Sep 2021 15:51:38 +0000 (10:51 -0500)
commit0aaf4a1d2bf1fd9b3ea2fea42ad584d472ba3f2a
tree754304672f5a85b512264d56051cfcce76d46b94
parente8ddfaf92d90f48f4644344fa741d400e5c18283
ksmbd: add validation for FILE_FULL_EA_INFORMATION of smb2_get_info

Add validation to check whether req->InputBufferLength is smaller than
smb2_ea_info_req structure size.

Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Cc: Steve French <smfrench@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c