CVE-2026-90153: ksmbd: bound smb_check_perm_dacl() ACE walks by DACL size
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: bound smb_check_perm_dacl() ACE walks by DACL size
smb_check_perm_dacl() validates that the DACL fits inside the NT security descriptor, but then bounds its two ACE walks by the remaining NTSD length (acl_size) rather than the DACL's declared size (pdacl_size).
When pdacl->size is smaller than the trailing NTSD buffer, bytes after the declared DACL boundary - still inside the stored security descriptor - are parsed as ACEs during access checks. A crafted DACL can place an access-granting ACE beyond pdacl->size, and the current code accepts it during SMB2_CREATE access validation, while parse_dacl() and smb_inherit_dacl() stop at pdacl_size.
Bound both ACE walks by pdacl_size to match the DACL boundary semantics used elsewhere in the server.
Validation:
- semantic KUnit harness shows the post-boundary ACE is selected before the fix and rejected (EACCES) after it
- linux master (7.2-rc6), x86_64
The Linux kernel CVE team has assigned CVE-2026-90153 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit 8f0541186e9ad1b62accc9519cc2b7a7240272a7 and fixed in 6.6.157 with commit a2051ffe452afad52f580b85a3fd8851933b1e7c Issue introduced in 6.0 with commit 8f0541186e9ad1b62accc9519cc2b7a7240272a7 and fixed in 6.12.110 with commit a29f57a14c939586d84d7fd6a029bd1fd170098f Issue introduced in 6.0 with commit 8f0541186e9ad1b62accc9519cc2b7a7240272a7 and fixed in 6.18.52 with commit a4a307d149327dad5fb25187e1b03cebd1b04de6 Issue introduced in 6.0 with commit 8f0541186e9ad1b62accc9519cc2b7a7240272a7 and fixed in 7.2.6 with commit 8e4f75e979c1d9a51b0a48ac33d0cfd5f039ec67 Issue introduced in 6.0 with commit 8f0541186e9ad1b62accc9519cc2b7a7240272a7 and fixed in 7.3-rc1 with commit 79decd88dd3f0d42e7fb0689b1a7853bfa302459 Issue introduced in 5.15.62 with commit cb69d4d6f709f87c94afa28ae64c501576692171 Issue introduced in 5.18.18 with commit 6e8f4abf584253cbaa596ea4ad13110cf61cd4c9 Issue introduced in 5.19.2 with commit 8e33102309bd6839b2e2e158f93a7b378cb4655d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90153
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/server/smbacl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a2051ffe452afad52f580b85a3fd8851933b1e7c https://git.kernel.org/stable/c/a29f57a14c939586d84d7fd6a029bd1fd170098f https://git.kernel.org/stable/c/a4a307d149327dad5fb25187e1b03cebd1b04de6 https://git.kernel.org/stable/c/8e4f75e979c1d9a51b0a48ac33d0cfd5f039ec67 https://git.kernel.org/stable/c/79decd88dd3f0d42e7fb0689b1a7853bfa302459