Files
twx-linux/fs
Namjae Jeon c3a3484d9d ksmbd: fix incorrect validation for num_aces field of smb_acl
[ Upstream commit 1b8b67f3c5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:32:03 +02:00
..
2024-12-14 19:51:12 +01:00
2025-03-13 12:50:46 +01:00
2024-10-22 15:40:40 +02:00
2025-01-23 17:16:00 +01:00
2024-12-14 19:51:44 +01:00
2024-02-23 08:54:51 +01:00
2025-03-13 12:49:51 +01:00
2025-04-10 14:31:50 +02:00
2024-03-01 13:21:43 +01:00
2023-09-23 11:10:01 +02:00
2025-03-13 12:49:50 +01:00
2023-08-30 16:18:19 +02:00
2024-04-10 16:19:01 +02:00