summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorliuyong <pkfxxxing@gmail.com>2026-11-06 18:48:36 +0800
committerPaulo Alcantara <pc@manguebit.org>2026-11-08 14:40:06 -0300
commita2dabe73ea05ad3b3f8e1cc08fb2e7c2ddc5564b (patch)
tree1d17ffdbd3b2f7e8917f081f592938282cb0a915 /tools/perf/scripts/python
parentffb59029c0d52bf76fdd2678f5d6fd13e26220dd (diff)
smb: client: compare owner and group SIDs using their encoded lengths
populate_new_aces() compares owner and group SIDs over sizeof(struct smb_sid), including storage for all 15 possible subauthorities. Received SIDs contain only their encoded subauthorities. The comparison can read past the security descriptor, as shown by the supplied KASAN report for a 44-byte descriptor during chmod. The input SIDs have already been checked by sid_from_sd(). Require equal subauthority counts, then compare only the fixed SID header and the encoded subauthorities with memcmp(). The count check ensures that both validated SIDs contain the number of bytes being compared. These issues were discovered and fixed by Qihoo 360's Tulongfeng multi-agent system. Fixes: 0f22053e811c ("cifs: Fix unix perm bits to cifsacl conversion for "other" bits.") Cc: stable@vger.kernel.org Signed-off-by: liuyong <pkfxxxing@gmail.com> Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions