]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:39:04 +0000 (12:39 +0000)
commit71fe685b6a47f887d23125681b59acbb5c059e15
tree736b1741beb2f7b29f78aad41965ebe59f16efc0
parent277832a306f916d9b7fddb9166dd4e876b402b17
smb: client: fix potential OOB in cifs_dump_detail()

commit b50492b05fd02887b46aef079592207fb5c97a4c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifs_debug.c