]> www.infradead.org Git - users/willy/pagecache.git/commit
smb: client: Add check for next_buffer in receive_encrypted_standard()
authorHaoxiang Li <haoxiang_li2024@163.com>
Mon, 17 Feb 2025 07:20:38 +0000 (15:20 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 20 Feb 2025 18:10:39 +0000 (12:10 -0600)
commit860ca5e50f73c2a1cef7eefc9d39d04e275417f7
tree215088b8f37ec0065d81d85357ae5df77816a8b6
parente9a8cac0bf895efe0bc7b11d174e8dae9b195da8
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: eec04ea11969 ("smb: client: fix OOB in receive_encrypted_standard()")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c