Commit 8be498fc authored by Namjae Jeon's avatar Namjae Jeon Committed by Greg Kroah-Hartman
Browse files

ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer



commit 5282491f upstream.

If data_offset and data_length of smb_direct_data_transfer struct are
invalid, out of bounds issue could happen.
This patch validate data_offset and data_length field in recv_done.

Cc: stable@vger.kernel.org
Fixes: 2ea086e3 ("ksmbd: add buffer validation for smb direct")
Reviewed-by: default avatarStefan Metzmacher <metze@samba.org>
Reported-by: default avatarLuigino Camastra, Aisle Research <luigino.camastra@aisle.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e97c45c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment