Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: validate descriptor headers before query result allocation query_info() uses the server's returned length instead of the caller's minimum when a dynamic result is requested. A zero-length ACL response can therefore return ZERO_SIZE_PTR to id_mode_to_cifs_acl(), whose ownership-change path reads dacloffset before checking the header size. A KASAN-enabled test shows a read at address 0x20 and a kernel Oops. Validate the returned range and the caller's minimum before allocating the dynamic result. Keep the reported length zero if validation fails. Use the security descriptor header size as the minimum in SMB2_query_acl(). DACL-only and SACL-only xattr queries do not require owner and group SIDs, so enforcing MIN_SEC_DESC_LEN would reject short descriptors that these queries could previously return. The rewrite paths validate the required owner/group SIDs and DACL separately before using their contents. 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
9ee2afe5207b63b20426ee081f486d831bae871d to < 63ac0e4293f03143f112fee06352aaca8396ae79affected9ee2afe5207b63b20426ee081f486d831bae871d to < 8814ab12de4868b137e9048f95ba5de23d99d42aaffected9ee2afe5207b63b20426ee081f486d831bae871d to < ffb59029c0d52bf76fdd2678f5d6fd13e26220ddaffected7ceb25df4900183479deacd3ccf7add41b2b836aaffected6.0.18 to < 6.1affected
Linux Linux
Default version status: affected
6.1affected0 to < 6.1unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected