]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: fix potential OOB in cifs_dump_detail()
authorPaulo Alcantara <pc@manguebit.com>
Sat, 16 Dec 2023 04:10:04 +0000 (01:10 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 18 Dec 2023 01:03:08 +0000 (19:03 -0600)
commitb50492b05fd02887b46aef079592207fb5c97a4c
treede81552b269472d749c41fa35b7a6f42aadad75b
parentb35858b3786ddbb56e1c35138ba25d6adf8d0bef
smb: client: fix potential OOB in cifs_dump_detail()

Validate SMB message with ->check_message() before calling
->calc_smb_size().

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c