]> git.baikalelectronics.ru Git - kernel.git/commit
SMB: fix validate negotiate info uninitialised memory use
authorDavid Disseldorp <ddiss@suse.de>
Fri, 20 Oct 2017 12:49:38 +0000 (14:49 +0200)
committerSteve French <smfrench@gmail.com>
Wed, 25 Oct 2017 18:04:25 +0000 (13:04 -0500)
commit611f08c300cd0d4b6a5b6ad5670c1ac2c74735c9
tree930b847cdec5700e372ad6badd6b58f70160a3e8
parent9f9de4e626c7a972afc4dcfb11344d682c95ab17
SMB: fix validate negotiate info uninitialised memory use

An undersize validate negotiate info server response causes the client
to use uninitialised memory for struct validate_negotiate_info_rsp
comparisons of Dialect, SecurityMode and/or Capabilities members.

Link: https://bugzilla.samba.org/show_bug.cgi?id=13092
Fixes: 741e5747b7f8 ("SMB3: Work around mount failure when using SMB3 dialect to Macs")
Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c