{"id":"CVE-2025-21994","aliases":["CVE-2025-21994"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix incorrect validation for num_aces field of smb_acl","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix incorrect validation for num_aces field of smb_acl\n\nparse_dcal() validate num_aces to allocate posix_ace_state_array.\n\nif (num_aces > ULONG_MAX / sizeof(struct smb_ace *))\n\nIt is an incorrect validation that we can create an array of size ULONG_MAX.\nsmb_acl has ->size field to calculate actual number of aces in request buffer\nsize. Use this to check invalid num_aces.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix incorrect validation for num_aces field of smb_acl\n\nparse_dcal() validate num_aces to allocate posix_ace_state_array.\n\nif (num_aces > ULONG_MAX / sizeof(struct smb_ace *))\n\nIt is an incorrect validation that we can create an array of size ULONG_MAX.\nsmb_acl has ->size field to calculate actual number of aces in request buffer\nsize. Use this to check invalid num_aces.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: Se corrige la validación incorrecta del campo num_aces de smb_acl. La función parse_dcal() valida num_aces para asignar posix_ace_state_array. Si (num_aces &gt; ULONG_MAX / sizeof(struct smb_ace *)), se considera una validación incorrecta que permita crear una matriz de tamaño ULONG_MAX. smb_acl tiene el campo -&gt;size para calcular el número real de ases en el tamaño del búfer de solicitud. Úselo para comprobar num_aces no válidos.","source":"nvd"}],"published":"2025-04-02T14:00:37.407Z","modified":"2026-08-05T11:55:53.957Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"c3a3484d9d31b27a3db0fab91fcf191132d65236","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"9c4e202abff45f8eac17989e549fc7a75095f675","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"d0f87370622a853b57e851f7d5a5452b72300f19","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"f6a6721802ac2f12f4c1bbe839a4c229b61866f2","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"1b8b67f3c5e5169535e26efedd3e422172e2db64","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.180","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.132","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.85","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.21","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.9","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"5.15.180"},{"status":"affected","introduced":"5.16","fixed":"6.1.132"},{"status":"affected","introduced":"6.2","fixed":"6.6.85"},{"status":"affected","introduced":"6.7","fixed":"6.12.21"},{"status":"affected","introduced":"6.13","fixed":"6.13.9"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c3a3484d9d31b27a3db0fab91fcf191132d65236","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c4e202abff45f8eac17989e549fc7a75095f675","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0f87370622a853b57e851f7d5a5452b72300f19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a4cb17797a5d241f1e509cb5b46ed95a80c2f5fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6a6721802ac2f12f4c1bbe839a4c229b61866f2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b8b67f3c5e5169535e26efedd3e422172e2db64","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21994","url":"https://www.cve.org/CVERecord?id=CVE-2025-21994","licence":"CVE Terms of Use","modified":"2026-08-05T11:55:53.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21994","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21994","licence":"Public domain","modified":"2026-07-30T06:22:02.047Z"}],"updatedAt":"2026-11-25T22:58:55.955Z","epss":{"score":0.00308,"percentile":0.25473,"date":"2026-12-01T12:00:22.000Z"}}