Security mailing lists by PureSourceCode

CVE-2026-143182

not scored yet

KEYS: Verify the key identity in __key_unlink_begin

In the Linux kernel, the following vulnerability has been resolved:

KEYS: Verify the key identity in __key_unlink_begin

When two keys have identical type and description, linking the second key
replaces the first in a keyring. However, attempting to unlink the first
key (no longer in the keyring) unlinks the second key.

This happens because __key_unlink_begin() calls assoc_array_delete() with
&key->index_key, matching only on type and description rather than the
key's identity.

Example:

keyctl new_session >/dev/null
keyctl newring ring_a @s
keyctl newring ring_b @s
A=$(keyctl add user A ss %:ring_a)
B=$(keyctl add user A qq %:ring_b)
keyctl newring R @s
keyctl link $A %:R
keyctl link $B %:R
keyctl unlink $A %:R
keyctl show

Verify the key identity before unlinking, and return -ENOENT on mismatch,
instead of unlinking the key with the wrong identity.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < c6d79090251f527cc98a18810bf4d31980054f3f; >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < 7c75c2813d74b4250c5b7bd89a151bee5dca35d9; >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < c8079f8e39360057798c1a569027d5cf15c66162; >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < 3a7532a40fd25163a63f0bb3257118aaba6190b1; >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < f880f9e8f65a1df621dbf43eb552e37bf2ee27e1; >= b2a4df200d570b2c33a57e1ebfa5896e4bc81b69, < 7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77 c6d79090251f527cc98a18810bf4d31980054f3f, 7c75c2813d74b4250c5b7bd89a151bee5dca35d9, c8079f8e39360057798c1a569027d5cf15c66162, 3a7532a40fd25163a63f0bb3257118aaba6190b1, f880f9e8f65a1df621dbf43eb552e37bf2ee27e1, 7a7f70ff7b26519c98b339a3e0cd9ee3c8d17f77
CVE List Linux Linux = 3.13

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.