Commit bfb1e2aa authored by Sang-Heon Jeon's avatar Sang-Heon Jeon Committed by Greg Kroah-Hartman
Browse files

smb: client: fix wrong index reference in smb2_compound_op()



[ Upstream commit fbe2dc6a ]

In smb2_compound_op(), the loop that processes each command's response
uses wrong indices when accessing response bufferes.

This incorrect indexing leads to improper handling of command results.
Also, if incorrectly computed index is greather than or equal to
MAX_COMPOUND, it can cause out-of-bounds accesses.

Fixes: 3681c74d ("smb: client: handle lack of EA support in smb2_query_path_info()") # 6.14
Reviewed-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: default avatarSang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 26923ea4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment