mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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>
This commit is contained in:
parent
687c59e702
commit
303fff2b8c
1 changed files with 274 additions and 109 deletions
381
fs/ksmbd/ndr.c
381
fs/ksmbd/ndr.c
Loading…
Add table
Add a link
Reference in a new issue