{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143182",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.358Z",
        "datePublished": "2026-12-03T09:20:14.080Z",
        "dateUpdated": "2026-12-03T09:20:14.080Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:20:14.080Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKEYS: Verify the key identity in __key_unlink_begin\n\nWhen two keys have identical type and description, linking the second key\nreplaces the first in a keyring. However, attempting to unlink the first\nkey (no longer in the keyring) unlinks the second key.\n\nThis happens because __key_unlink_begin() calls assoc_array_delete() with\n&key->index_key, matching only on type and description rather than the\nkey's identity.\n\nExample:\n\n  keyctl new_session >/dev/null\n  keyctl newring ring_a @s\n  keyctl newring ring_b @s\n  A=$(keyctl add user A ss %:ring_a)\n  B=$(keyctl add user A qq %:ring_b)\n  keyctl newring R @s\n  keyctl link $A %:R\n  keyctl link $B %:R\n  keyctl unlink $A %:R\n  keyctl show\n\nVerify the key identity before unlinking, and return -ENOENT on mismatch,\ninstead of unlinking the key with the wrong identity."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/keys/keyring.c"
                    ],
                    "versions": [
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "c6d79090251f527cc98a18810bf4d31980054f3f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "7c75c2813d74b4250c5b7bd89a151bee5dca35d9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "c8079f8e39360057798c1a569027d5cf15c66162",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "3a7532a40fd25163a63f0bb3257118aaba6190b1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "f880f9e8f65a1df621dbf43eb552e37bf2ee27e1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2a4df200d570b2c33a57e1ebfa5896e4bc81b69",
                            "lessThan": "7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "security/keys/keyring.c"
                    ],
                    "versions": [
                        {
                            "version": "3.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.13",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.276",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "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": "3.13",
                                    "versionEndExcluding": "5.10.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.13",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.13",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.13",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.13",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.13",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c6d79090251f527cc98a18810bf4d31980054f3f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7c75c2813d74b4250c5b7bd89a151bee5dca35d9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c8079f8e39360057798c1a569027d5cf15c66162"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3a7532a40fd25163a63f0bb3257118aaba6190b1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f880f9e8f65a1df621dbf43eb552e37bf2ee27e1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77"
                }
            ],
            "title": "KEYS: Verify the key identity in __key_unlink_begin",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}