]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: For SMB2 security informaion query, check for minimum sized security descriptor...
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Mon, 4 Jun 2018 11:46:22 +0000 (06:46 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Jun 2018 00:19:24 +0000 (19:19 -0500)
commitee25c6dd7b05113783ce1f4fab6b30fc00d29b8d
tree0d9f36330c53ae05ffdd630819e298719dcfbbcb
parent57f933ce9fba4a1cecb6e34ffafe841d093493cb
cifs: For SMB2 security informaion query, check for minimum sized security descriptor instead of sizeof FileAllInformation class

Validate_buf () function checks for an expected minimum sized response
passed to query_info() function.
For security information, the size of a security descriptor can be
smaller (one subauthority, no ACEs) than the size of the structure
that defines FileInfoClass of FileAllInformation.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199725
Cc: <stable@vger.kernel.org>
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Noah Morrison <noah.morrison@rubrik.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.h
fs/cifs/smb2pdu.c