]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 10 Sep 2025 02:22:52 +0000 (11:22 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 15 Sep 2025 03:17:10 +0000 (22:17 -0500)
commit5282491fc49d5614ac6ddcd012e5743eecb6a67c
tree5954a22517a560022fd2b56f35271e5a9d7a8be5
parentd162694037215fe25f1487999c58d70df809a2fd
ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer

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: 2ea086e35c3d ("ksmbd: add buffer validation for smb direct")
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reported-by: Luigino Camastra, Aisle Research <luigino.camastra@aisle.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/transport_rdma.c