linux/fs/smb
Sang-Heon Jeon bfb1e2aad1 smb: client: fix wrong index reference in smb2_compound_op()
[ Upstream commit fbe2dc6a9c ]

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: 3681c74d34 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-02 13:44:12 +02:00
..
client smb: client: fix wrong index reference in smb2_compound_op() 2025-10-02 13:44:12 +02:00
common smb: smbdirect: introduce smbdirect_socket_parameters 2025-07-06 11:01:42 +02:00
server smb: server: use disable_work_sync in transport_rdma.c 2025-10-02 13:44:08 +02:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00