CVE-2025-21994

ksmbd: fix incorrect validation for num_aces field of smb_acl

HIGH 7.6

At a glance

Source
NVD
EPSS
EPSS 0.31 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.6CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:HLinux
CVSS 3.1HIGH 7.6CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0626e6641f6b467447c81dd7678a69c66f7746cf < c3a3484d9d31b27a3db0fab91fcf191132d65236 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < 9c4e202abff45f8eac17989e549fc7a75095f675 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < d0f87370622a853b57e851f7d5a5452b72300f19 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < f6a6721802ac2f12f4c1bbe839a4c229b61866f2 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < 1b8b67f3c5e5169535e26efedd3e422172e2db64
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 5.15.180 ≤ 5.15.* ; unaffected 6.1.132 ≤ 6.1.* ; unaffected 6.6.85 ≤ 6.6.* ; unaffected 6.12.21 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD