CVE-2026-143427: ksmbd: do not read past the DACL in the access denied debug message
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: do not read past the DACL in the access denied debug message
When smbcheckpermdacl() falls back to the POSIX ACL and then denies the request, its debug message prints the access mask of the ACE that the second DACL walk stopped at. On that path the walk ran to the end of the DACL, so the pointer is one past the last ACE. If the DACL is the last part of the stored security descriptor, the message reads 4 bytes past the buffer, and KASAN reports a slab-out-of-bounds read in smbcheckpermdacl().
Print the requested and allowed masks instead. They are what the check compares.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5
Event History
Frequently Asked Questions
Under what conditions can the out-of-bounds read occur?
It occurs when ksmbd falls back to a POSIX ACL in smb_check_perm_dacl(), denies the request, and emits the access-denied debug message. The read extends 4 bytes past the security-descriptor buffer when the DACL is the final component of that descriptor.
Does handling a request successfully trigger this issue?
No. The affected path is the access-denied path after the DACL walk reaches its end and the POSIX ACL fallback also denies the request.
What changes in the fix?
The fix stops printing the access mask from the ACE pointer after the DACL walk. It instead logs the requested and allowed masks used by the permission check, avoiding the out-of-bounds read.