{"id":"CVE-2026-143182","summary":"KEYS: Verify the key identity in __key_unlink_begin","details":"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-\u003eindex_key, matching only on type and description rather than the\nkey's identity.\n\nExample:\n\n  keyctl new_session \u003e/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.","modified":"2026-12-03T11:01:35.120116309Z","published":"2026-12-03T09:20:14.080Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143182.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a7532a40fd25163a63f0bb3257118aaba6190b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7c75c2813d74b4250c5b7bd89a151bee5dca35d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6d79090251f527cc98a18810bf4d31980054f3f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8079f8e39360057798c1a569027d5cf15c66162"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f880f9e8f65a1df621dbf43eb552e37bf2ee27e1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143182.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143182"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69"},{"fixed":"c6d79090251f527cc98a18810bf4d31980054f3f"},{"fixed":"7c75c2813d74b4250c5b7bd89a151bee5dca35d9"},{"fixed":"c8079f8e39360057798c1a569027d5cf15c66162"},{"fixed":"3a7532a40fd25163a63f0bb3257118aaba6190b1"},{"fixed":"f880f9e8f65a1df621dbf43eb552e37bf2ee27e1"},{"fixed":"7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143182.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.13.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143182.json"}}],"schema_version":"1.9.2"}