diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-07-23 15:27:37 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-07-23 10:25:11 -0500 |
commit | 536bb492d39bb6c080c92f31e8a55fe9934f452b (patch) | |
tree | d88bd5f8284b25fd35f03fb188f160daf0c6e1a5 /drivers/virtio | |
parent | e202a1e8634b186da38cbbff85382ea2b9e297cf (diff) |
ksmbd: fix out of bounds in init_smb2_rsp_hdr()
If client send smb2 negotiate request and then send smb1 negotiate
request, init_smb2_rsp_hdr is called for smb1 negotiate request since
need_neg is set to false. This patch ignore smb1 packets after ->need_neg
is set to false.
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-21541
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions