Skip to content
Commit 860ca5e5 authored by Haoxiang Li's avatar Haoxiang Li Committed by Steve French
Browse files

smb: client: Add check for next_buffer in receive_encrypted_standard()



Add check for the return value of cifs_buf_get() and cifs_small_buf_get()
in receive_encrypted_standard() to prevent null pointer dereference.

Fixes: eec04ea1 ("smb: client: fix OOB in receive_encrypted_standard()")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHaoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent e9a8cac0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment