CVE-2025-21994

published 2 Apr 2025 · updated 5 Aug 2026

ksmbd: fix incorrect validation for num_aces field of smb_acl

7.6HighCVSS 7.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1b8b67f3c5e5169535e26efedd3e422172e2db64, Kernel 9c4e202abff45f8eac17989e549fc7a75095f675, Kernel a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd and 3 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <1b8b67f3c5e5169535e26efedd3e422172e2db64, >=0626e6641f6b467447c81dd7678a69c66f7746cf <9c4e202abff45f8eac17989e549fc7a75095f675, >=0626e6641f6b467447c81dd7678a69c66f7746cf <a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd, >=0626e6641f6b467447c81dd7678a69c66f7746cf <c3a3484d9d31b27a3db0fab91fcf191132d65236, >=0626e6641f6b467447c81dd7678a69c66f7746cf <d0f87370622a853b57e851f7d5a5452b72300f19, >=0626e6641f6b467447c81dd7678a69c66f7746cf <f6a6721802ac2f12f4c1bbe839a4c229b61866f21b8b67f3c5e5169535e26efedd3e422172e2db64, 9c4e202abff45f8eac17989e549fc7a75095f675, a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd, c3a3484d9d31b27a3db0fab91fcf191132d65236, d0f87370622a853b57e851f7d5a5452b72300f19, f6a6721802ac2f12f4c1bbe839a4c229b61866f2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21994 severity on Zeptric[![CVE-2025-21994](https://zeptric.io/badge/cve/CVE-2025-21994.svg)](https://zeptric.io/cve/CVE-2025-21994)