Skip to content

Commit

Permalink
ksmbd: add validation for ndr read/write functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namjae Jeon authored and Steve French committed Sep 4, 2021
1 parent 687c59e commit 303fff2
Showing 1 changed file with 274 additions and 109 deletions.
Loading

0 comments on commit 303fff2

Please sign in to comment.