8.8high
ksmbd: fix out-of-bounds in parse_sec_desc()
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.50% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out-of-bounds in parse_sec_desc() If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd struct size. If it is smaller, It could cause slab-out-of-bounds. And when validating sid, It need to check it included subauth array size.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before f4ee19528664777af8b842f8f001be98345aa973, from 0626e6641f6b467447c81dd7678a69c66f7746cf before c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6a9831180d0b23b5c97e2bd841aefc8f82900172, from 0626e6641f6b467447c81dd7678a69c66f7746cf before d6e13e19063db24f94b690159d0633aaf72a0f03, 5.15 Not affected: before 5.15, from 6.1.160 up to 6.1.*, from 6.6.83 up to 6.6.*, from 6.12.19 up to 6.12.*, from 6.13.7 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 5.15 before 6.6.83, from 6.7 before 6.12.19, from 6.13 before 6.13.7, 6.14 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out-of-bounds in parse_sec_desc() If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd struct size. If it is smaller, It could cause slab-out-of-bounds. And when validating sid, It need to check it included subauth array size.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se corrige un error fuera de los límites en parse_sec_desc(). Si osidoffset, gsidoffset y dacloffset pueden ser mayores que el tamaño de la estructura smb_ntsd, si es menor, podría causar un error fuera de los límites de slab. Al validar sid, es necesario comprobar si incluye el tamaño del array subauth.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21946 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-21946 changed 2026-07-30 | Public domain |