CVE-2026-143060: ksmbd: evaluate the DACL in order for explicit access requests
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: evaluate the DACL in order for explicit access requests
For requests without MAXIMUMALLOWED, smbcheckpermdacl() selects one ACE instead of evaluating the DACL in order. When the selected ACE is a deny ACE, the function grants the complement of its mask, and deny ACEs before it are ignored. The selected ACE can also be inherit-only, unsupported, or an NFS mode ACE.
Guest and anonymous sessions also match Authenticated Users. These bugs can grant read or write access that the stored DACL does not grant. For example, a deny of FILEREADDATA grants FILEWRITEDATA, and guests can read files granted only to Authenticated Users.
Evaluate explicit requests in DACL order. Use exact SID matching for the caller, Everyone, Authenticated Users, OWNER RIGHTS and the caller's groups. Match Authenticated Users only for authenticated sessions, and ignore the NFS mode SID.
An Authenticated Users ACE must still prevent the POSIX ACL fallback from replacing the DACL result for guest and anonymous sessions. The ACE does not grant them access.
Keep the existing single-ACE behavior when a non-inherit-only object deny ACE is present because ksmbd does not parse those ACEs. Guest and anonymous sessions do not match Authenticated Users there either. MAXIMUMALLOWED behavior is unchanged.
Affected Software
Event History
Frequently Asked Questions
Which deployments are most exposed to unintended access?
Systems running ksmbd that serve files protected by stored DACLs are affected when those DACLs rely on ordered deny ACEs, Authenticated Users restrictions, or ACE types such as inherit-only or NFS mode ACEs. Guest and anonymous SMB sessions are specifically relevant because they could be treated as Authenticated Users.
What access could an attacker gain?
A requester may receive read or write access that the stored DACL does not grant. For example, selecting a deny ACE for FILE_READ_DATA could result in FILE_WRITE_DATA being granted, and guest users could read files intended only for Authenticated Users.
How can I assess whether a share may be affected?
Review ksmbd-served files that use stored DACLs, especially where deny ACEs precede other ACEs or where access is restricted to Authenticated Users. Test explicit access requests from guest, anonymous, and authenticated sessions against the intended DACL permissions.