]> 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)
commit1484d563f947449caff365ec4703f111a6e77e5e
treed98701863d3afdc4359fe015ac1a89d0fd081cf3
parent55f23e71c38c08f051af83d37b2e2706522b3816
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