{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99292","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.406Z","datePublished":"2026-11-16T09:59:20.770Z","dateUpdated":"2026-11-19T13:52:14.401Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-19T13:52:14.401Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()\n\nIn id_mode_to_cifs_acl(), while the chown branch reserves\nsizeof(struct smb_ntsd) + 2 * sizeof(struct smb_sid) (plus\nsizeof(struct smb_acl) and the worst-case ACE space after\ncommit 0ee150794c75 (\"smb: client: fix heap overflow in DACL owner/group\nrewrite\")), the chmod branch only adds 2 * sizeof(struct smb_ace) or\n5 * sizeof(struct smb_ace) to secdesclen (or 1 * sizeof(struct smb_ace)\non posix).\n\nHowever, the chmod branch also invokes build_sec_desc() ->\ncopy_sec_desc(), which unconditionally writes the Owner SID at\npnntsd + sidsoffset and the Group SID at\npnntsd + sidsoffset + sizeof(struct smb_sid) (2 * 68 = 136 bytes total),\nand set_chmod_dacl() always writes a struct smb_acl header (8 bytes)\neven when the source descriptor has dacloffset == 0. When a security\ndescriptor has compact or overlapping Owner/Group SIDs (or\ndacloffset == 0), calling chmod() under-allocates pnntsd and writes past\nthe end of the slab buffer.\n\nReserve sizeof(struct smb_acl) + 2 * sizeof(struct smb_sid) (plus\nsizeof(struct smb_ntsd) on the posix path) in the chmod branch of\nid_mode_to_cifs_acl()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - chmod reaches id_mode_to_cifs_acl() from cifs_setattr_nounix() when ATTR_MODE is set. The buffer length is secdesclen from the descriptor get_smb2_acl() reads with SMB2_query_acl() (SMB2 QUERY_INFO, InfoType SMB2_O_INFO_SECURITY). The server places the compact or overlapping Owner and Group SIDs in that response, and SMB travels over routable TCP.\nAC:L - The server sets osidoffset, gsidoffset, dacloffset and the group SID num_subauth in that QUERY_INFO descriptor. On a modefromsid mount, copy_sec_desc() writes the group SID at sidsoffset+sizeof(struct smb_sid), past the chmod-branch kzalloc, and those server-chosen fields fully determine how far the write goes.\nPR:N - The attacker is the SMB server answering the client's SMB2_query_acl() during setattr. No client uid, capability, or credential is consulted before copy_sec_desc() consumes that descriptor.\nUI:R - The chmod branch of id_mode_to_cifs_acl() runs only from cifs_setattr_nounix() with ATTR_MODE, which is chmod(2)/fchmod(2) or a write that must push a cleared S_ISUID/S_ISGID mode on a modefromsid or cifsacl mount. A user of the mount has to perform that setattr.\nS:U - The overflowed object is the pnntsd slab buffer allocated in the client kernel while rewriting this mount's ACL, so the corruption remains in the client's own kernel security authority.\nC:H - copy_sec_desc() stores nsecdesclen as sidsoffset plus two struct smb_sid and writes the group SID past the chmod kzalloc. SMB2_set_info_init() then memcpy()s that length from pnntsd into the SMB2 SET_INFO request, so bytes beyond the allocation are both overwritten and returned to the server.\nI:H - The bytes written past pnntsd are the group SID sub_auth values taken from the server descriptor, and the server picks the DACL length that sets the kzalloc size. That is a controlled slab overflow in copy_sec_desc() into whatever object follows pnntsd.\nA:H - The slab-out-of-bounds write in copy_sec_desc() extends past the pnntsd object allocated by id_mode_to_cifs_acl(). Crossing that object faults or corrupts the next slab slot and crashes the client."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"],"versions":[{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","lessThan":"cde80904e285a7ac29ba2e06bc23a60b09b05f54","status":"affected","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","lessThan":"ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673","status":"affected","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","lessThan":"be1bcc9147facd85dc2ebe48688afde6d5590f10","status":"affected","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","lessThan":"a377a3645c7d0246af0bc4ef24db94bb2670bdde","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"],"versions":[{"version":"3.8","status":"affected"},{"version":"0","lessThan":"3.8","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/cde80904e285a7ac29ba2e06bc23a60b09b05f54"},{"url":"https://git.kernel.org/stable/c/ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673"},{"url":"https://git.kernel.org/stable/c/be1bcc9147facd85dc2ebe48688afde6d5590f10"},{"url":"https://git.kernel.org/stable/c/a377a3645c7d0246af0bc4ef24db94bb2670bdde"}],"title":"smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()","x_generator":{"engine":"bippy-1.2.0"}}}}