CVE-2025-21994: Linux kernel · ksmbd: fix incorrect validation for num_aces field of smb_acl
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 01:27 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to correctly validate the num_aces field using the smb_acl size field. Users should apply the official kernel updates that include this fix once available. Since no vendor advisory or patch links are provided, check the Linux kernel mailing lists or official repositories for the patch.
Description
CVE-2025-21994 is a medium severity vulnerability in the Linux kernel's ksmbd component. It involves incorrect validation of the num_aces field in the smb_acl structure, which could lead to improper memory allocation. The issue was fixed by improving validation logic to use the smb_acl size field for accurate bounds checking.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21994 (opens in a new tab)
- git.kernel.org/stable/c/1b8b67f3c5e5169535e26efedd3e422172e2db64 (opens in a new tab)
- git.kernel.org/stable/c/9c4e202abff45f8eac17989e549fc7a75095f675 (opens in a new tab)
- git.kernel.org/stable/c/a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd (opens in a new tab)
- git.kernel.org/stable/c/c3a3484d9d31b27a3db0fab91fcf191132d65236 (opens in a new tab)
- git.kernel.org/stable/c/d0f87370622a853b57e851f7d5a5452b72300f19 (opens in a new tab)
- git.kernel.org/stable/c/f6a6721802ac2f12f4c1bbe839a4c229b61866f2 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)