CVE-2025-21994

Source
https://cve.org/CVERecord?id=CVE-2025-21994
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21994.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21994
Downstream
Related
Published
2025-04-02T14:00:37.407Z
Modified
2026-03-11T05:36:13.139135Z
Summary
ksmbd: fix incorrect validation for num_aces field of smb_acl
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix incorrect validation for numaces field of smbacl

parsedcal() validate numaces to allocate posixacestate_array.

if (numaces > ULONGMAX / sizeof(struct smb_ace *))

It is an incorrect validation that we can create an array of size ULONGMAX. smbacl has ->size field to calculate actual number of aces in request buffer size. Use this to check invalid num_aces.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21994.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
c3a3484d9d31b27a3db0fab91fcf191132d65236
Fixed
9c4e202abff45f8eac17989e549fc7a75095f675
Fixed
d0f87370622a853b57e851f7d5a5452b72300f19
Fixed
a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd
Fixed
f6a6721802ac2f12f4c1bbe839a4c229b61866f2
Fixed
1b8b67f3c5e5169535e26efedd3e422172e2db64

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21994.json"