commit | 303fff2b8c77a85c62dbde3b27c24b084144c04c | [log] [tgz] |
---|---|---|
author | Namjae Jeon <linkinjeon@kernel.org> | Fri Sep 03 07:09:44 2021 +0900 |
committer | Steve French <stfrench@microsoft.com> | Fri Sep 03 23:29:45 2021 -0500 |
tree | 8dec6d6bff81a9a9c79e074b3b83f4b46ca3e6b2 | |
parent | 687c59e702f48e0eca91455d3ef3197b7b8a8314 [diff] |
ksmbd: add validation for ndr read/write functions If ndr->length is smaller than expected size, ksmbd can access invalid access in ndr->data. This patch add validation to check ndr->offset is over ndr->length. and added exception handling to check return value of ndr read/write function. Cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>