{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143046",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.345Z",
        "datePublished": "2026-12-03T09:18:22.672Z",
        "dateUpdated": "2026-12-04T03:27:41.632Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:27:41.632Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: compare owner and group SIDs using their encoded lengths\n\npopulate_new_aces() compares owner and group SIDs over sizeof(struct\nsmb_sid), including storage for all 15 possible subauthorities. Received\nSIDs contain only their encoded subauthorities. The comparison can read\npast the security descriptor, as shown by the supplied KASAN report for\na 44-byte descriptor during chmod.\n\nThe input SIDs have already been checked by sid_from_sd(). Require equal\nsubauthority counts, then compare only the fixed SID header and the\nencoded subauthorities with memcmp(). The count check ensures that both\nvalidated SIDs contain the number of bytes being compared.\n\nThese issues were discovered and fixed by Qihoo 360's Tulongfeng\nmulti-agent system."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - chmod on a cifsacl mount calls cifs_setattr_nounix() and id_mode_to_cifs_acl(), which loads the NTSD via get_smb2_acl()/SMB2_query_acl() (SMB2 QUERY_INFO, InfoType SMB2_O_INFO_SECURITY). populate_new_aces() memcmp()s the owner and group SIDs inside that server-supplied buffer, carried over routable TCP.\nAC:L - The server sets OutputBufferLength plus osidoffset, gsidoffset, and num_subauth. sid_from_sd() accepts a short encoded SID, and the pre-fix populate_new_aces() always memcmp()s sizeof(struct smb_sid) (68) bytes; the reported 44-byte descriptor over-reads on every such chmod with no race.\nPR:N - The attacker is the SMB server answering SMB2_query_acl() during setattr and needs no uid, capability, or credential on the client. setattr_prepare() constrains only the local user who issues the chmod.\nUI:R - The memcmp is reached only when modefromsid and posix are both false, from id_mode_to_cifs_acl()'s ATTR_MODE branch in cifs_setattr_nounix(). A user of a cifsacl mount must chmod(2), fchmod(2), or write a setuid/setgid file.\nS:U - The over-read of the kmalloc'd QUERY_INFO security descriptor and the ACL rewrite in build_sec_desc() stay in the CIFS client kernel. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - sid_from_sd() checks only the encoded SID length (8+4*num_subauth), but populate_new_aces() memcmp()s 68 bytes. On the reported 44-byte kmalloc that reads dozens of bytes past the object, and the match bit selects ACE masks returned in SMB2 SET_INFO.\nI:N - The over-read result is only the owner/group equality boolean. fill_ace_for_sid() then copies num_subauth sub-authorities into the separate pnntsd kzalloc, a length parse_sid() already bounded, so there is no out-of-bounds write.\nA:H - memcmp of sizeof(struct smb_sid) from a SID inside kmalloc(OutputBufferLength) walks off that object, matching the chmod KASAN report on a 44-byte descriptor, and faults with a kernel oops if the following slab page is unmapped."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/client/cifsacl.c"
                    ],
                    "versions": [
                        {
                            "version": "0f22053e811ca5dd5d51b919741e02396ea600f3",
                            "lessThan": "b6b4c93e36ceb162e2b2bc04301b707257344422",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0f22053e811ca5dd5d51b919741e02396ea600f3",
                            "lessThan": "a7c4a5654e38386776c61b68238831b5c564271e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0f22053e811ca5dd5d51b919741e02396ea600f3",
                            "lessThan": "2748602e8a0083766a791c0343db2cc25ca4a1d2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0f22053e811ca5dd5d51b919741e02396ea600f3",
                            "lessThan": "a2dabe73ea05ad3b3f8e1cc08fb2e7c2ddc5564b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/client/cifsacl.c"
                    ],
                    "versions": [
                        {
                            "version": "5.11",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.11",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.11",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.11",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.11",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.11",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b6b4c93e36ceb162e2b2bc04301b707257344422"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a7c4a5654e38386776c61b68238831b5c564271e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2748602e8a0083766a791c0343db2cc25ca4a1d2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a2dabe73ea05ad3b3f8e1cc08fb2e7c2ddc5564b"
                }
            ],
            "title": "smb: client: compare owner and group SIDs using their encoded lengths",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}