{"id":"CVE-2026-143182","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:54.383","lastModified":"2026-12-03T10:17:54.383","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["security/keys/keyring.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"c6d79090251f527cc98a18810bf4d31980054f3f","versionType":"git","status":"affected"},{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"7c75c2813d74b4250c5b7bd89a151bee5dca35d9","versionType":"git","status":"affected"},{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"c8079f8e39360057798c1a569027d5cf15c66162","versionType":"git","status":"affected"},{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"3a7532a40fd25163a63f0bb3257118aaba6190b1","versionType":"git","status":"affected"},{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"f880f9e8f65a1df621dbf43eb552e37bf2ee27e1","versionType":"git","status":"affected"},{"version":"b2a4df200d570b2c33a57e1ebfa5896e4bc81b69","lessThan":"7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["security/keys/keyring.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.13","status":"affected"},{"version":"0","lessThan":"3.13","versionType":"semver","status":"unaffected"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/3a7532a40fd25163a63f0bb3257118aaba6190b1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7c75c2813d74b4250c5b7bd89a151bee5dca35d9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c6d79090251f527cc98a18810bf4d31980054f3f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c8079f8e39360057798c1a569027d5cf15c66162","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f880f9e8f65a1df621dbf43eb552e37bf2ee27e1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}