In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bounds read in smb_check_perm_dacl()
The permission-check ACE walk in smb_check_perm_dacl() validates the ACE header size and caps sid.num_subauth at SID_MAX_SUB_AUTHORITIES, but it never checks that ace->size is actually large enough to contain num_subauth sub-authorities before compare_sids() dereferences them.
CIFS_SID_BASE_SIZE covers the SID header up to but excluding the sub_auth[] array, and offsetof(struct smb_ace, sid) is the ACE header, so the existing guards only guarantee the 8-byte SID base, i.e. zero sub-authorities. compare_sids() then reads ace->sid.sub_auth[i] for i < min(local_sid->num_subauth, ace->sid.num_subauth). The local comparison SIDs (sid_everyone, sid_unix_NFS_mode, and the id_to_sid() result) always have at least one sub-authority, and an attacker controls the ACE revision and authority bytes (which lie within the in-bounds SID base), so they can match one of those SIDs and force the sub_auth read.
A crafted ACE with size == 16 and num_subauth >= 1 placed at the tail of the security descriptor therefore causes a heap out-of-bounds read of up to SID_MAX_SUB_AUTHORITIES * sizeof(__le32) bytes past the pntsd allocation. The security descriptor is loaded by ksmbd_vfs_get_sd_xattr() into a buffer sized exactly to the on-disk data (kzalloc(sd_size) in ndr_decode_v4_ntacl()), so the read lands past the allocation. The malformed descriptor can be stored verbatim via SMB2_SET_INFO (the DACL is not normalised before being written to the security.NTACL xattr) and the read fires on a subsequent SMB2_CREATE access check, making this reachable by an authenticated client on a share that uses ACL xattrs.
Add the missing num_subauth-versus-ace_size check, mirroring the identical guards already present in the sibling parsers parse_dacl() and smb_inherit_dacl().
CVSS Details
- CVSS 3.1 Base Score: 8.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linuxUpgrade linux-6.1 | Jul 20, 2026 | Jul 20, 2026 |
| Ubuntu | — | Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1013-oemUpgrade linux-image-gke-64k-7.0Upgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-realtimeUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-awsUpgrade linux-image-oem-26.04aUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-aws-64k-7.0Upgrade linux-image-generic-7.0Upgrade linux-image-7.0.0-1014-azureUpgrade linux-image-gke-7.0Upgrade linux-image-azureUpgrade linux-image-raspi-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-nvidia-7.0Upgrade linux-image-raspiUpgrade linux-image-realtime-7.0Upgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-oem-26.04Upgrade linux-image-oem-7.0Upgrade linux-image-gke-64kUpgrade linux-image-realtime-64kUpgrade linux-image-gcp-64kUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gkeUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-oracle-7.0Upgrade linux-image-oem-26.04bUpgrade linux-image-ibm-7.0Upgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-azure-7.0Upgrade linux-image-oracleUpgrade linux-image-virtualUpgrade linux-image-generic-64k-7.0Upgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-nvidiaUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-generic-64kUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-gcpUpgrade linux-image-aws-64kUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-virtual-7.0Upgrade linux-image-ibmUpgrade linux-image-genericUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-gcp-7.0Upgrade linux-image-azure-lts-26.04Upgrade linux-image-7.0.0-31-genericUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-raspi-realtimeUpgrade linux-image-nvidia-64kUpgrade linux-image-gke-hwe-26.04 | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 27, 2026 | Jul 19, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub