summary refs log tree commit diff
path: root/usr
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-06-15 22:04:40 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 11:12:18 +0200
commitc86211159bc3178b891e0d60e586a32c7b6a231b (patch)
tree4762b6a24dc1e541d4bd46824190f3b40ae096ca /usr
parent9650cf70ec9d94ff34daa088b643229231723c26 (diff)
downloadlinux-c86211159bc3178b891e0d60e586a32c7b6a231b.tar.gz
ksmbd: fix out-of-bound read in smb2_write
commit 5fe7f7b78290638806211046a99f031ff26164e1 upstream.

ksmbd_smb2_check_message doesn't validate hdr->NextCommand. If
->NextCommand is bigger than Offset + Length of smb2 write, It will
allow oversized smb2 write length. It will cause OOB read in smb2_write.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-21164
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions