]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix invalid request buffer access in compound
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 24 Sep 2021 00:24:08 +0000 (09:24 +0900)
committerSteve French <stfrench@microsoft.com>
Sun, 26 Sep 2021 21:47:14 +0000 (16:47 -0500)
commitd72a9c158893d537d769a669a5837bc80b0f851c
treed98701863d3afdc4359fe015ac1a89d0fd081cf3
parent18d46769d54aba03c2c3fa666fe810f264b5d7b8
ksmbd: fix invalid request buffer access in compound

Ronnie reported invalid request buffer access in chained command when
inserting garbage value to NextCommand of compound request.
This patch add validation check to avoid this issue.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Tested-by: Steve French <smfrench@gmail.com>
Reviewed-by: Steve French <smfrench@gmail.com>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c