Skip to content
CVE PROGRAM SOURCE RECORD7.6 High

CVE-2025-21994

ksmbd: fix incorrect validation for num_aces field of smb_acl

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < c3a3484d9d31b27a3db0fab91fcf191132d65236affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < 9c4e202abff45f8eac17989e549fc7a75095f675affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < d0f87370622a853b57e851f7d5a5452b72300f19affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < a4cb17797a5d241f1e509cb5b46ed95a80c2f5fdaffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < f6a6721802ac2f12f4c1bbe839a4c229b61866f2affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to < 1b8b67f3c5e5169535e26efedd3e422172e2db64affected

Linux Linux

Default version status: affected

  • 5.15affected
  • 0 to < 5.15unaffected
  • 5.15.180 to ≤ 5.15.*unaffected
  • 6.1.132 to ≤ 6.1.*unaffected
  • 6.6.85 to ≤ 6.6.*unaffected
  • 6.12.21 to ≤ 6.12.*unaffected
  • 6.13.9 to ≤ 6.13.*unaffected
  • 6.14 to ≤ *unaffected

References