CVE-2026-99743: ksmbd: grant a POSIX ACL group entry only to the group's members
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: grant a POSIX ACL group entry only to the group's members
When no ACE of the DACL matches the caller, Everyone or Authenticated Users, smb_check_perm_dacl() falls back to the file's POSIX ACL. It takes the first ACL_USER or ACL_GROUP entry whose id equals the caller's uid. For ACL_GROUP, this compares a gid with the caller's uid. A numerical match grants the group's permissions even when the caller is not a member.
Match a group entry only when the caller is also in the group.
The Linux kernel CVE team has assigned CVE-2026-99743 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.118 with commit cc25a25f20bffce7f138e50d257d0fd23a92c061 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.64 with commit 629dc60f4c9de7044e6c91832b63e1b78e486635 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.5 with commit 92b4dc36ccab59999857a4181284859e5e3fb67b Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc2 with commit c00ec7ad449b68c291a4986e481941302ed399c5
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-99743
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/cc25a25f20bffce7f138e50d257d0fd23a92c061 https://git.kernel.org/stable/c/629dc60f4c9de7044e6c91832b63e1b78e486635 https://git.kernel.org/stable/c/92b4dc36ccab59999857a4181284859e5e3fb67b https://git.kernel.org/stable/c/c00ec7ad449b68c291a4986e481941302ed399c5