What’s Vulnerable › Vulnerabilities

CVE-2025-21994: ksmbd: fix incorrect validation for num_aces field of smb_acl

Description

In the Linux kernel, the following vulnerability has been resolved: 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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.180, 6.1.132, 6.12.21, 6.13.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21994 or the next vulnerability affects your stack