CVE-2026-143182: KEYS: Verify the key identity in __key_unlink_begin

Published Dec 3, 2026
·
Updated

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

KEYS: Verify the key identity in keyunlinkbegin

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 keyunlinkbegin() calls assocarraydelete() with &key->indexkey, matching only on type and description rather than the key's identity.

Example:

keyctl newsession >/dev/null keyctl newring ringa @s keyctl newring ringb @s A=$(keyctl add user A ss %:ringa) B=$(keyctl add user A qq %:ringb) 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.

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=3.13.0<5.10.276
5.10.276
linux/kernel>=5.11.0<5.15.227
5.15.227
linux/kernel>=5.16.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.276
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.227
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the incorrect unlink behavior?

A keyring must contain a replacement key with the same key type and description as an earlier key. An attempt to unlink the earlier key after it has been replaced can remove the replacement key instead.

2

What is the observable impact of a failed unlink attempt?

Instead of reporting that the requested key is absent from the keyring, the vulnerable behavior can unlink a different key that has the same type and description. The resolved behavior verifies key identity and returns -ENOENT when the requested key does not match.

3

How can an administrator determine whether this scenario may affect a workload?

Review workloads that create or link keys with duplicate type and description values in the same keyring, then unlink an older key after a newer matching key has replaced it. The example uses two user keys both named A, linked sequentially into the same keyring.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203