Pavel Shilovsky adc58bfd4d CIFS: Fix a possible invalid memory access in smb2_query_symlink()
commit 7893242e2465aea6f2cbc2639da8fa5ce96e8cc2 upstream.

During following a symbolic link we received err_buf from SMB2_open().
While the validity of SMB2 error response is checked previously
in smb2_check_message() a symbolic link payload is not checked at all.
Fix it by adding such checks.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-20 18:09:20 +02:00
..
2015-11-03 10:10:36 -06:00
2013-11-08 05:57:46 +09:00
2015-06-27 20:23:32 -07:00
2014-12-14 14:55:57 -06:00
2015-11-03 10:10:36 -06:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00