]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Validate content of WSL reparse point buffers
authorPali Rohár <pali@kernel.org>
Fri, 20 Sep 2024 23:29:33 +0000 (01:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:21 +0000 (12:54 -0700)
commitb2bccc729b933a9f0f982ee05f7cf0c59a32311b
treebe064b8881e11787ec952a92e3fa1638534c2caf
parent061ea46c56f6d62f1a216cdeaf44e6cecb9f6de4
cifs: Validate content of WSL reparse point buffers

[ Upstream commit 1f48660667efb97c3cf70485c7e1977af718b48b ]

WSL socket, fifo, char and block devices have empty reparse buffer.
Validate the length of the reparse buffer.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: cad3fc0a4c8c ("cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/reparse.c