diff options
author | Namjae Jeon <[email protected]> | 2023-07-23 15:27:37 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2023-07-23 10:25:11 -0500 |
commit | 536bb492d39bb6c080c92f31e8a55fe9934f452b (patch) | |
tree | d88bd5f8284b25fd35f03fb188f160daf0c6e1a5 /lib/test_fortify/write_overflow-strncpy-src.c | |
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: [email protected] # ZDI-CAN-21541
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions