Files
linux/fs/smb/server
Namjae Jeon 1b8b67f3c5 ksmbd: fix incorrect validation for num_aces field of smb_acl
parse_dcal() validate num_aces to allocate posix_ace_state_array.

if (num_aces > ULONG_MAX / sizeof(struct smb_ace *))

It is an incorrect validation that we can create an array of size ULONG_MAX.
smb_acl has ->size field to calculate actual number of aces in request buffer
size. Use this to check invalid num_aces.

Reported-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Tested-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2025-03-02 22:50:54 -06:00
..
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2023-09-03 21:06:36 -05:00
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2025-03-02 22:50:53 -06:00
2025-01-07 18:48:49 -06:00
2025-01-15 23:24:51 -06:00
2024-11-25 18:58:02 -06:00
2024-11-25 18:58:02 -06:00
2025-01-15 23:24:51 -06:00
2025-01-15 23:24:51 -06:00