]> www.infradead.org Git - users/dwmw2/linux.git/commit
cifs: Validate content of native symlink
authorPali Rohár <pali@kernel.org>
Mon, 23 Sep 2024 20:56:46 +0000 (22:56 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2024 20:50:32 +0000 (14:50 -0600)
commitdd26bc067e44956e43a273e6e0a9c1fc4ed32cb7
treeb71c863a5aa52892badd2ba4b318db6a899525af
parent723f4ef90452aa629f3d923e92e0449d69362b1d
cifs: Validate content of native symlink

Check that path buffer has correct length (it is non-zero and in UNICODE
mode it has even number of bytes) and check that buffer does not contain
null character (UTF-16 null codepoint in UNICODE mode or null byte in
non-unicode mode) because Linux cannot process symlink with null byte.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/reparse.c