]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
smb: client: fix wrong index reference in smb2_compound_op()
authorSang-Heon Jeon <ekffu200098@gmail.com>
Tue, 23 Sep 2025 08:16:45 +0000 (17:16 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 26 Sep 2025 14:45:16 +0000 (09:45 -0500)
commitfbe2dc6a9c7318f7263f5e4d50f6272b931c5756
tree029479059be1f325fd55d91459eee7ab8386265b
parent1cf9f2a6a544288516a7b9e883a48eba6246bcf2
smb: client: fix wrong index reference in smb2_compound_op()

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: 3681c74d342d ("smb: client: handle lack of EA support in smb2_query_path_info()") # 6.14
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2inode.c