UBUNTU-CVE-2026-99292: Medium severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix slab-out-of-bounds write in idmodetocifsacl() In idmodetocifsacl(), while the chown branch reserves sizeof(struct smbntsd) + 2 sizeof(struct smbsid) (plus sizeof(struct smbacl) and the worst-case ACE space after commit 0ee150794c75 ("smb: client: fix heap overflow in DACL owner/group rewrite")), the chmod branch only adds 2 sizeof(struct smbace) or 5 sizeof(struct smbace) to secdesclen (or 1 sizeof(struct smbace) on posix). However, the chmod branch also invokes buildsecdesc() -> copysecdesc(), which unconditionally writes the Owner SID at pnntsd + sidsoffset and the Group SID at pnntsd + sidsoffset + sizeof(struct smbsid) (2 68 = 136 bytes total), and setchmoddacl() always writes a struct smbacl header (8 bytes) even when the source descriptor has dacloffset == 0. When a security descriptor has compact or overlapping Owner/Group SIDs (or dacloffset == 0), calling chmod() under-allocates pnntsd and writes past the end of the slab buffer. Reserve sizeof(struct smbacl) + 2 sizeof(struct smbsid) (plus sizeof(struct smbntsd) on the posix path) in the chmod branch of idmodetocifsacl().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the chmod branch of id_mode_to_cifs_acl(), reserve sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid), and include sizeof(struct smb_ntsd) on the POSIX path.
Event History
Frequently Asked Questions
Which systems are exposed?
Systems running the listed Ubuntu kernel packages are exposed when the SMB client performs chmod operations on SMB objects whose security descriptors have compact or overlapping Owner/Group SIDs, or no DACL. The affected package set includes the standard, FIPS, AWS, Azure, GCP, and Oracle Ubuntu kernel variants.
What is required to trigger the out-of-bounds write?
The SMB client must call chmod() on an object with a triggering security descriptor. The problematic cases include compact or overlapping Owner and Group SIDs and descriptors with dacloffset set to zero, because the chmod path under-allocates space before writing SID and ACL data.
Does the issue apply only to a particular ACL mode?
No. The description identifies insufficient allocation in the chmod branch for both POSIX and non-POSIX paths. The POSIX path also needs space for the SMB security-descriptor structure in addition to the ACL header and Owner/Group SID storage.