Description
In the Linux kernel, the following vulnerability has been resolved: 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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
0f22053e811ca5dd5d51b919741e02396ea600f3 to < b6b4c93e36ceb162e2b2bc04301b707257344422affected0f22053e811ca5dd5d51b919741e02396ea600f3 to < a7c4a5654e38386776c61b68238831b5c564271eaffected0f22053e811ca5dd5d51b919741e02396ea600f3 to < 2748602e8a0083766a791c0343db2cc25ca4a1d2affected0f22053e811ca5dd5d51b919741e02396ea600f3 to < a2dabe73ea05ad3b3f8e1cc08fb2e7c2ddc5564baffected
Linux Linux
Default version status: affected
5.11affected0 to < 5.11unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected