{"id":"CVE-2026-143035","state":"PUBLISHED","title":"smb: client: validate descriptor headers before query result allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate descriptor headers before query result allocation\n\nquery_info() uses the server's returned length instead of the caller's\nminimum when a dynamic result is requested. A zero-length ACL response\ncan therefore return ZERO_SIZE_PTR to id_mode_to_cifs_acl(), whose\nownership-change path reads dacloffset before checking the header size.\nA KASAN-enabled test shows a read at address 0x20 and a kernel Oops.\n\nValidate the returned range and the caller's minimum before allocating\nthe dynamic result. Keep the reported length zero if validation fails.\n\nUse the security descriptor header size as the minimum in SMB2_query_acl().\nDACL-only and SACL-only xattr queries do not require owner and group SIDs,\nso enforcing MIN_SEC_DESC_LEN would reject short descriptors that these\nqueries could previously return. The rewrite paths validate the required\nowner/group SIDs and DACL separately before using their contents.\n\nThese issues were discovered and fixed by Qihoo 360's Tulongfeng\nmulti-agent system.","publishedAt":"2026-12-03T09:18:10.892Z","updatedAt":"2026-12-03T09:18:10.892Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"63ac0e4293f03143f112fee06352aaca8396ae79","versionType":"git"},{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"8814ab12de4868b137e9048f95ba5de23d99d42a","versionType":"git"},{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"ffb59029c0d52bf76fdd2678f5d6fd13e26220dd","versionType":"git"},{"version":"7ceb25df4900183479deacd3ccf7add41b2b836a","status":"affected","versionType":"git"},{"version":"6.0.18","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.h","fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.h","fs/smb/client/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/63ac0e4293f03143f112fee06352aaca8396ae79","https://git.kernel.org/stable/c/8814ab12de4868b137e9048f95ba5de23d99d42a","https://git.kernel.org/stable/c/ffb59029c0d52bf76fdd2678f5d6fd13e26220dd"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143035.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143035","state":"PUBLISHED","datePublished":"2026-12-03T09:18:10.892Z","dateUpdated":"2026-12-03T09:18:10.892Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.344Z"},"containers":{"cna":{"title":"smb: client: validate descriptor headers before query result allocation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate descriptor headers before query result allocation\n\nquery_info() uses the server's returned length instead of the caller's\nminimum when a dynamic result is requested. A zero-length ACL response\ncan therefore return ZERO_SIZE_PTR to id_mode_to_cifs_acl(), whose\nownership-change path reads dacloffset before checking the header size.\nA KASAN-enabled test shows a read at address 0x20 and a kernel Oops.\n\nValidate the returned range and the caller's minimum before allocating\nthe dynamic result. Keep the reported length zero if validation fails.\n\nUse the security descriptor header size as the minimum in SMB2_query_acl().\nDACL-only and SACL-only xattr queries do not require owner and group SIDs,\nso enforcing MIN_SEC_DESC_LEN would reject short descriptors that these\nqueries could previously return. The rewrite paths validate the required\nowner/group SIDs and DACL separately before using their contents.\n\nThese issues were discovered and fixed by Qihoo 360's Tulongfeng\nmulti-agent system."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"63ac0e4293f03143f112fee06352aaca8396ae79","versionType":"git"},{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"8814ab12de4868b137e9048f95ba5de23d99d42a","versionType":"git"},{"version":"9ee2afe5207b63b20426ee081f486d831bae871d","status":"affected","lessThan":"ffb59029c0d52bf76fdd2678f5d6fd13e26220dd","versionType":"git"},{"version":"7ceb25df4900183479deacd3ccf7add41b2b836a","status":"affected","versionType":"git"},{"version":"6.0.18","status":"affected","lessThan":"6.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.h","fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsacl.h","fs/smb/client/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/63ac0e4293f03143f112fee06352aaca8396ae79"},{"url":"https://git.kernel.org/stable/c/8814ab12de4868b137e9048f95ba5de23d99d42a"},{"url":"https://git.kernel.org/stable/c/ffb59029c0d52bf76fdd2678f5d6fd13e26220dd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:10.892Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}