CVE-2025-21994

ksmbd: fix incorrect validation for num_aces field of smb_acl

State
Published
Severity
7.6 High
Published
Apr 2, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.6 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before c3a3484d9d31b27a3db0fab91fcf191132d65236Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 9c4e202abff45f8eac17989e549fc7a75095f675Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before d0f87370622a853b57e851f7d5a5452b72300f19Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before a4cb17797a5d241f1e509cb5b46ed95a80c2f5fdAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before f6a6721802ac2f12f4c1bbe839a4c229b61866f2Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1b8b67f3c5e5169535e26efedd3e422172e2db64Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.180 through 5.15.*Not affected
  • 6.1.132 through 6.1.*Not affected
  • 6.6.85 through 6.6.*Not affected
  • 6.12.21 through 6.12.*Not affected
  • 6.13.9 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.