diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2021-09-03 07:09:44 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-09-03 23:29:45 -0500 |
commit | 303fff2b8c77a85c62dbde3b27c24b084144c04c (patch) | |
tree | 8dec6d6bff81a9a9c79e074b3b83f4b46ca3e6b2 /security | |
parent | 687c59e702f48e0eca91455d3ef3197b7b8a8314 (diff) | |
download | linux-303fff2b8c77a85c62dbde3b27c24b084144c04c.tar.bz2 |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions