Kernel Kit / Infix / v26.10.0latest
CVE-2026-99542
—unknownlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
ksmbd: deny access for an empty DACL instead of granting the request
smb_check_perm_dacl() returns the access mask it computes to the SMB2 CREATE handler, which uses it as the granted access for the open. For a security descriptor whose DACL is present but contains no ACEs, the function is supposed to deny access: an empty (non-NULL) DACL grants no access to anyone except the object owner's implicit READ_CONTROL and WRITE_DAC (MS-DTYP 2.4.5).
The empty-DACL branch only denies when both
- –the DACL has no trailing bytes (
pdacl_size== sizeof(structsmb_acl)), and - –the request contains bits beyond
READ_CONTROL/WRITE_DAC.
In every other case it takes the shared "goto err_out" with rc still 0, which returns success without modifying *pdaccess, so the caller grants the full requested access. Three problems follow:
- –The
READ_CONTROL/WRITE_DACcarve-out models the owner's implicit rights, but the check runs beforeis_owneris computed, so those rights are handed to *every* caller, not just the owner. ForREAD_CONTROLthe SMB2 CREATE path does not fall back toinode_permission(), so any user can read the security descriptor of an object whose empty DACL is meant to deny them.
- –A request of exactly
READ_CONTROLand/orWRITE_DACis granted to any caller.WRITE_DAClets the handle rewrite the DACL.
- –A DACL that declares zero ACEs but carries trailing bytes (
pdacl_size> sizeof(structsmb_acl)) skips the deny entirely and is granted whatever was requested.
On shares where the NT ACL is the authoritative access control -- e.g. "force user" shares, where every client maps to one POSIX identity so POSIX cannot distinguish users -- this is an access-control bypass.
Compute is_owner before the empty-DACL branch and deny access from an empty DACL unless the caller is the owner requesting no more than READ_CONTROL / WRITE_DAC.
Published 2026-11-19NVD
Build check · v26.10.0 x86_64
None of the source files the CNA lists for CVE-2026-99542 (fs/smb/server/smbacl.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.
Evidence 1
object file absent: not compiled
output/build/linux-6.18.60/fs/smb/server/smbacl.o
Members of Kernel Kit decide. Sign in if you are one.