]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita2d9daad1d2dfbd307ab158044d1c323d7babbde
tree930b847cdec5700e372ad6badd6b58f70160a3e8
parentfe83bebc05228e838ed5cbbc62712ab50dd40e18
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: 7db0a6efdc3e ("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