Skip to content

Commit 303fff2

Browse files
namjaejeonSteve French
authored andcommitted
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>
1 parent 687c59e commit 303fff2

File tree

1 file changed

+274
-109
lines changed

1 file changed

+274
-109
lines changed

0 commit comments

Comments
 (0)