CVE-2026-143046: smb: client: compare owner and group SIDs using their encoded lengths
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In smb: client, compare owner and group SIDs using their encoded lengths: check that the subauthority counts match, then compare only the fixed SID header and the encoded subauthorities.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel SMB client are exposed when they process SMB security descriptors containing owner or group SIDs. The reported out-of-bounds read was triggered during a chmod operation.
What input is required to trigger the flaw?
The issue involves received SIDs whose encoded length is shorter than sizeof(struct smb_sid), because the vulnerable comparison includes storage for all 15 possible subauthorities. The SIDs have already passed validation by sid_from_sd(), but the comparison can still read past the security descriptor.
How can the issue be fixed?
Apply a kernel update containing the referenced stable fixes. The correction requires matching SID subauthority counts and comparing only the fixed SID header plus the encoded subauthorities.