1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/fs/smb
Namjae Jeon aa2a739a75 cifs: fix incorrect validation for num_aces field of smb_acl
parse_dcal() validate num_aces to allocate ace array.

f (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 response buffer
size. Use this to check invalid num_aces.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2025-03-02 22:50:54 -06:00
..
client cifs: fix incorrect validation for num_aces field of smb_acl 2025-03-02 22:50:54 -06:00
common smb: common: change the data type of num_aces to le16 2025-03-02 22:50:54 -06:00
server ksmbd: fix incorrect validation for num_aces field of smb_acl 2025-03-02 22:50:54 -06: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