]> 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)
commit396d213dfb6dd15fd14906053c2d42651d3483ff
tree930b847cdec5700e372ad6badd6b58f70160a3e8
parentf4c03450e38bef6d99f7ec497e6c89f35cba0295
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: be5389ad5485 ("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