Shirish Pargaonkar ffb179cfbc cifs: For SMB2 security informaion query, check for minimum sized security descriptor instead of sizeof FileAllInformation class
commit ee25c6dd7b05113783ce1f4fab6b30fc00d29b8d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-26 08:06:31 +08:00
..
2016-10-13 19:48:11 -05:00
2017-09-17 23:10:48 -05:00
2018-04-24 09:36:27 +02:00
2018-04-24 09:36:27 +02:00
2017-01-14 14:58:29 -06:00
2017-03-02 23:13:37 -06:00
2017-06-20 19:13:47 -05:00
2017-05-03 10:10:10 -05:00
2018-04-24 09:36:27 +02:00
2018-04-24 09:36:27 +02:00