# CVE-2025-21946: ksmbd: fix out-of-bounds in parse_sec_desc()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-04-01T15:41:08.955Z
- Modified: 2026-08-05T11:55:31.476Z
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f4ee19528664777af8b842f8f001be98345aa973>
- <https://git.kernel.org/stable/c/c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b> (patch)
- <https://git.kernel.org/stable/c/159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1> (patch)
- <https://git.kernel.org/stable/c/6a9831180d0b23b5c97e2bd841aefc8f82900172> (patch)
- <https://git.kernel.org/stable/c/d6e13e19063db24f94b690159d0633aaf72a0f03> (patch)

## Sources

- CVE List: [CVE-2025-21946](https://www.cve.org/CVERecord?id=CVE-2025-21946), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21946](https://nvd.nist.gov/vuln/detail/CVE-2025-21946), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-21946 · Whole record: https://cve.day/CVE-2025-21946.json · Rebuilt by cve.day 2026-11-25T22:58:55.901Z
