]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Check for UTF-16 null codepoint in SFU symlink target location
authorPali Rohár <pali@kernel.org>
Fri, 27 Sep 2024 18:20:39 +0000 (20:20 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 29 Sep 2024 22:28:40 +0000 (17:28 -0500)
commita9023656bcd28aaf184974a121d3c2f2ec1ded46
tree86538894f2af27a1f39f67024c8d28f85b841e78
parent9852d85ec9d492ebef56dc5f229416c925758edc
cifs: Check for UTF-16 null codepoint in SFU symlink target location

Check that read buffer of SFU symlink target location does not contain
UTF-16 null codepoint (via UniStrnlen() call) because Linux cannot process
symlink with null byte, it truncates everything in buffer after null byte.

Fixes: cf2ce67345d6 ("cifs: Add support for reading SFU symlink location")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/inode.c