{"id":"CVE-2026-99292","state":"PUBLISHED","title":"smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()","description":"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().","publishedAt":"2026-11-16T09:59:20.770Z","updatedAt":"2026-11-19T13:52:14.401Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"cde80904e285a7ac29ba2e06bc23a60b09b05f54","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"be1bcc9147facd85dc2ebe48688afde6d5590f10","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"a377a3645c7d0246af0bc4ef24db94bb2670bdde","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.8","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"]}],"references":["https://git.kernel.org/stable/c/cde80904e285a7ac29ba2e06bc23a60b09b05f54","https://git.kernel.org/stable/c/ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673","https://git.kernel.org/stable/c/be1bcc9147facd85dc2ebe48688afde6d5590f10","https://git.kernel.org/stable/c/a377a3645c7d0246af0bc4ef24db94bb2670bdde"],"weaknesses":[],"ingestedAt":"2026-11-19T13:58:06.563Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99292.json","commit":"5284c0aaed448bdf5be406b31f52fecb38b554c5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99292","state":"PUBLISHED","datePublished":"2026-11-16T09:59:20.770Z","dateUpdated":"2026-11-19T13:52:14.401Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.406Z"},"containers":{"cna":{"title":"smb: client: fix slab-out-of-bounds write in id_mode_to_cifs_acl()","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()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"cde80904e285a7ac29ba2e06bc23a60b09b05f54","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"ba57bfe1a9fa1566757cd3f3310ccdf88f4b7673","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"be1bcc9147facd85dc2ebe48688afde6d5590f10","versionType":"git"},{"version":"7ee0b4c635c091eb3c805977ba886bae2fd33f0c","status":"affected","lessThan":"a377a3645c7d0246af0bc4ef24db94bb2670bdde","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.8","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T13:52:14.401Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}