]> www.infradead.org Git - users/dwmw2/linux.git/commit
ksmbd: move leading slash check to smb2_get_name()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 10 Jun 2024 14:06:19 +0000 (23:06 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 12 Jun 2024 04:43:09 +0000 (23:43 -0500)
commit1cdeca6a7264021e20157de0baf7880ff0ced822
tree7081b6166e488d601f8955946ef463e71438911b
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
ksmbd: move leading slash check to smb2_get_name()

If the directory name in the root of the share starts with
character like ้•œ(0x955c) or แนœ(0x1e5c), it (and anything inside)
cannot be accessed. The leading slash check must be checked after
converting unicode to nls string.

Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c