aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2023-07-23 15:21:11 +0900
committerSteve French <[email protected]>2023-07-23 10:25:11 -0500
commit3df0411e132ee74a87aa13142dfd2b190275332e (patch)
treefddaba26c32ed7d1d83da6f94b12d27d8f8f55b8 /lib/test_fortify/write_overflow-strncpy-src.c
parentdc318846f3dd54574a36ae97fc8d8b75dd7cdb1e (diff)
ksmbd: validate session id and tree id in compound request
`smb2_get_msg()` in smb2_get_ksmbd_tcon() and smb2_check_user_session() will always return the first request smb2 header in a compound request. if `SMB2_TREE_CONNECT_HE` is the first command in compound request, will return 0, i.e. The tree id check is skipped. This patch use ksmbd_req_buf_next() to get current command in compound. Reported-by: [email protected] # ZDI-CAN-21506 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