CVE-2025-21994

ksmbd: fix incorrect validation for num_aces field of smb_acl

published April 2, 2025

CVSS
—
EPSS
0%
Percentile
21.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00302 · 21.8th percentile
Published
2025-04-02T14:00Z
EPSS history
Timeline
  • 02 APR 14:00Z
    ksmbd: fix incorrect validation for num_aces field of smb_acl
    cvelistv5