{"id":28987,"date":"2026-09-25T20:31:39","date_gmt":"2026-09-25T12:31:39","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97555"},"modified":"2026-09-25T20:31:39","modified_gmt":"2026-09-25T12:31:39","slug":"cve-2026-97555","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97555","title":{"rendered":"CVE-2026-97555 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix heap"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb: client: fix heap overflow in DACL owner\/group rewrite<\/p>\n<p>When id_mode_to_cifs_acl rewrites an existing DACL, it allocates a<br \/>\nbuffer sized according to the on-disk DACL length reported by<br \/>\ndacl_ptr-&gt;size. However, replace_sids_and_copy_aces may rewrite each<br \/>\nACE with a new owner\/group SID obtained from the cifs.idmap upcall.<br \/>\nThose SIDs can have up to SID_MAX_SUB_AUTHORITIES (15) sub-authorities,<br \/>\nmaking each ACE up to 76 bytes (sizeof(struct smb_ace)).<\/p>\n<p>If the original DACL contains short SIDs (e.g., 1 sub-authority) while<br \/>\nthe replacement SIDs are long, the rewritten ACEs overflow the<br \/>\nallocation.<\/p>\n<p>Fix this by always budgeting for worst-case SID expansion: allocate<br \/>\nsizeof(struct smb_acl) plus num_aces * sizeof(struct smb_ace), which<br \/>\ncovers the smb_acl header and room for every ACE at maximum SID size.<br \/>\nThis replaces the previous split logic that used dacl_ptr-&gt;size for<br \/>\ncifsacl mounts but num_aces * sizeof(struct smb_ace) for mode_from_sid<br \/>\nmounts: both paths can trigger the same rewrite and need the same<br \/>\nheadroom.<\/p>\n<p>KASAN reports this as:<br \/>\n  BUG: KASAN: slab-out-of-bounds in build_sec_desc+0x1e8a\/0x2680 [cifs]<br \/>\n  Write of size 4 at addr ffff8881a5e25374 by task chown\/5298<br \/>\n  &#8230;<br \/>\n  The buggy address is located 0 bytes to the right of<br \/>\n   allocated 884-byte region [ffff8881a5e25000, ffff8881a5e25374)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb: client: fix heap overflow in DACL owner\/group rewrite<\/p>\n<p>When id_mode_to_cifs_acl rewrites an existing DACL, it allocates a<br \/>\nbuff<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-28987","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/28987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}