CVE-2026-99532: ksmbd: validate security descriptor offsets before pointer arithmetic
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate security descriptor offsets before pointer arithmetic
parsesecdesc() constructs SID and DACL pointers by adding untrusted 32-bit offsets to the security descriptor before checking their bounds. The existing checks reject offsets into the descriptor header, but do not reject offsets beyond the descriptor's length.
On a 32-bit kernel, a large offset can wrap the pointer before the descriptor. The end-only checks in parsesid() and parsedacl() can then accept it, allowing an authenticated SMB2 SETINFO request to access memory outside the security descriptor and fault the kernel.
Check each nonzero offset against acllen before constructing its pointer. Initialize the optional owner and group SID pointers to NULL so an omitted SID remains absent when parsing the DACL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In ksmbd security descriptor parsing, initialize the optional owner and group SID pointers to NULL, and validate each nonzero offset against acl_len before constructing SID or DACL pointers.