commit | 17cf0c2794bdb6f39671265aa18aea5c22ee8c4a | [log] [tgz] |
---|---|---|
author | Namjae Jeon <linkinjeon@kernel.org> | Fri Apr 12 09:45:00 2024 +0900 |
committer | Steve French <stfrench@microsoft.com> | Fri Apr 19 20:48:47 2024 -0500 |
tree | 4753df1ab69cee91533f4d250cfc2fd7bb1ac96f | |
parent | c119f4ede3fa90a9463f50831761c28f989bfb20 [diff] |
ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer. Cc: stable@vger.kernel.org Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>