AZL-117998: CVE-2026-143046 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
smb: client: compare owner and group SIDs using their encoded lengths
populatenewaces() compares owner and group SIDs over sizeof(struct smbsid), 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 sidfromsd(). 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 Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The vulnerable path is in the SMB client while processing security descriptors that contain owner or group SIDs, such as during chmod. A malformed or specially sized received security descriptor can cause the SID comparison to read beyond the descriptor.
Are malformed SIDs accepted before the vulnerable comparison?
The SIDs have already passed validation by sid_from_sd(). The issue is that populate_new_aces() compares the full fixed-size SID structure rather than only the encoded SID length.
What does the fix change?
The fix requires the owner and group SIDs to have equal subauthority counts and compares only the fixed SID header plus the encoded subauthorities. This bounds the comparison to bytes validated as present in both SIDs.