VDB

CVE-2025-21994

CVE-2025-21994 PUBLISHED CVSS 7.6 HIGH

ksmbd: fix incorrect validation for num_aces field of smb_acl

Reported by linux · Published April 2, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.14, 6.13.9, 6.12.21, 6.6.85, 6.1.132, 5.15.180

Risk scores

CVSS 3.1
7.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

Affected products

VendorProductVersions
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf
LinuxLinux5.15, 0, 5.15.180
linuxlinux_kernel5.15, 5.15, 5.15
LinuxLinux0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf, 0626e6641f6b467447c81dd7678a69c66f7746cf

Timeline

  • Apr 2, 2025 Coalition ESS Score (10 in total, the first dated here)
  • Apr 2, 2025 CVE Published
  • Apr 3, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (192 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (173 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21994
vulnetix vdb fixes CVE-2025-21994

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21994/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›