summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2017-09-08 10:37:35 +1000
committerBen Hutchings <ben@decadent.org.uk>2018-01-01 20:51:30 +0000
commit15daa442f83017a3c6a20faa94c087dd2e93a100 (patch)
tree7c263afb995ab9e9651785372c70cabe1b2ad2df /include/uapi
parent0f8064fd26a197cd65f4d4fd631cf3ebab0b5d9f (diff)
cifs: check rsp for NULL before dereferencing in SMB2_open
commit bf2afee14e07de16d3cafc67edbfc2a3cc65e4bc upstream. In SMB2_open there are several paths where the SendReceive2 call will return an error before it sets rsp_iov.iov_base thus leaving iov_base uninitialized. Thus we need to check rsp before we dereference it in the call to get_rfc1002_length(). A report of this issue was previously reported in http://www.spinics.net/lists/linux-cifs/msg12846.html RH-bugzilla : 1476151 Version 2 : * Lets properly initialize rsp_iov before we use it. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>. Signed-off-by: Steve French <smfrench@gmail.com> Reported-by: Xiaoli Feng <xifeng@redhat.com> [bwh: Backported to 3.16: zero-initialise iov instead of rsp_iov] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions