CVE-2026-99245

KEYS: Fix key_reject_and_link() race with keyring restriction

Published Nov 3, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

KEYS: Fix key_reject_and_link() race with keyring restriction

The restrict_link check in key_reject_and_link() is done before taking
the keyring semaphore, racing with a concurrent keyring_restrict()
that installs the restriction while holding the semaphore in write
mode.

Move the check to after __key_link_lock(), so it is done under the
semaphore, matching the pattern used in __key_create_or_update().

Analysis

AI-generated

Technical impact

The kernel’s key management subsystem contains a race condition between key_reject_and_link() and keyring_restrict(). In key_reject_and_link() a restriction check is performed before acquiring the keyring semaphore, which allows a concurrent keyring_restrict() that holds the semaphore in write mode to install a restriction while the check is pending. This ordering can allow key_reject_and_link() to link a key after a restriction has been applied, potentially bypassing key usage limits or causing kernel instability. The vulnerability is a classic race condition involving concurrent operations on shared state, classified as CWE-367.

Affected Systems

All Linux systems running a kernel revision that includes the unpatched key management code are affected. The issue applies to the core Linux kernel module and is not tied to any particular userland application. Distribution packages from Linux before the commit that moved the restriction check to occur after acquiring the semaphore contain the vulnerability and should be identified via their kernel version.

Risk and Exploitability

Exploitation requires the attacker to trigger both the key_reject_and_link() and keyring_restrict() operations concurrently, which typically entails local or privileged access to the system. Because the surface for remote exploitation is limited to local kernel interfaces, the risk is primarily for users who can run privileged code. The EPSS score is < 1%, indicating a very low but non-zero exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. Given the need for local privilege and the low EPSS probability, the threat level is low but the vulnerability warrants prompt patching to prevent potential misuse or kernel instability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the commit moving the restriction check after acquiring the keyring semaphore.
  • Restrict access to keyring APIs through security modules such as SELinux, AppArmor, or custom Mandatory Access Control policies.
  • Enable kernel auditing or logging for keyring operations to detect abnormal link or restriction activity.
  • Keep the kernel at the latest security‑aligned release provided by the distribution.

Generated by OpenCVE AI on November 5, 2026 at 04:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9165-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9166-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9167-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-2 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-479
Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.6, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-479
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: KEYS: Fix key_reject_and_link() race with keyring restriction The restrict_link check in key_reject_and_link() is done before taking the keyring semaphore, racing with a concurrent keyring_restrict() that installs the restriction while holding the semaphore in write mode. Move the check to after __key_link_lock(), so it is done under the semaphore, matching the pattern used in __key_create_or_update().
Title KEYS: Fix key_reject_and_link() race with keyring restriction
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 3, 2026, 7:13 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 3, 2026, 12:17 PM
Modified
Nov 3, 2026, 8:18 PM
Severity
Low
Public date
Nov 3, 2026, 11:15 AM