# CVE-2025-21994: ksmbd: fix incorrect validation for num\_aces field of smb\_acl

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-02 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-21994, DEBIAN-CVE-2025-21994
- Record: https://cvemate.com/vulnerability/CVE-2025-21994 · JSON: https://cvemate.com/vulnerability/CVE-2025-21994/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
- EPSS: 0.308%, percentile 25.431%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 142)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.21-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-142.152 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93 \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1091.100 \| \< 6.8.0-1038.44
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 42)

- <https://git.kernel.org/stable/c/c3a3484d9d31b27a3db0fab91fcf191132d65236>
- <https://git.kernel.org/stable/c/9c4e202abff45f8eac17989e549fc7a75095f675>
- <https://git.kernel.org/stable/c/d0f87370622a853b57e851f7d5a5452b72300f19>
- <https://git.kernel.org/stable/c/a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd>
- <https://git.kernel.org/stable/c/f6a6721802ac2f12f4c1bbe839a4c229b61866f2>
- <https://git.kernel.org/stable/c/1b8b67f3c5e5169535e26efedd3e422172e2db64>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://ubuntu.com/security/CVE-2025-21994>
- <https://www.cve.org/CVERecord?id=CVE-2025-21994>
- <https://git.kernel.org/linus/1b8b67f3c5e5169535e26efedd3e422172e2db64>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>
- <https://ubuntu.com/security/notices/USN-7593-1>
- <https://ubuntu.com/security/notices/USN-7591-4>
- <https://ubuntu.com/security/notices/USN-7597-1>
- <https://ubuntu.com/security/notices/USN-7597-2>
- <https://ubuntu.com/security/notices/USN-7598-1>
- <https://ubuntu.com/security/notices/USN-7602-1>

---

Data as of 2026-12-05T03:52:14.723Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
