{"schema_version":"1.9.0","id":"CVE-2025-21946","published":"2025-04-01T15:41:08.955Z","modified":"2026-08-12T03:51:38.111814937Z","summary":"ksmbd: fix out-of-bounds in parse_sec_desc()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix out-of-bounds in parse_sec_desc()\n\nIf osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd\nstruct size. If it is smaller, It could cause slab-out-of-bounds.\nAnd when validating sid, It need to check it included subauth array size.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"f4ee19528664777af8b842f8f001be98345aa973"},{"fixed":"c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b"},{"fixed":"159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1"},{"fixed":"6a9831180d0b23b5c97e2bd841aefc8f82900172"},{"fixed":"d6e13e19063db24f94b690159d0633aaf72a0f03"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21946.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.83"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.19"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.13.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21946.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a9831180d0b23b5c97e2bd841aefc8f82900172"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d6e13e19063db24f94b690159d0633aaf72a0f03"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4ee19528664777af8b842f8f001be98345aa973"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21946.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21946"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21946.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}