---
id: CVE-2026-99245
title: 'KEYS: Fix key_reject_and_link() race with keyring restriction'
summary: |-
  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…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    c7956ec99ad0e173720d95de9fa788bb077809f2
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    72f367417a6aee56821d0b0114cfd2b080008b63
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    19dfc37c9deefa69dc805d01d35d1f2fd7902e33
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    5787887eba0f0979a8c86d03a8e891395d5c24ad
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    01835d3a3709be508ae5209f806640336c48e395
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    6fc0c818b1cac66003e937c8a0d3bfb23fd3f130
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    23a9163cc40b4996ba1e20533b1210a1a0bee416
  - >-
    Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c <
    0b157166e612b70f98a332b6c7be7eac6f8e9593
  - Linux 4.7
published: '2026-11-03'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T19:13:10.812Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-99245'
references:
  - url: 'https://git.kernel.org/stable/c/c7956ec99ad0e173720d95de9fa788bb077809f2'
  - url: 'https://git.kernel.org/stable/c/2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f'
  - url: 'https://git.kernel.org/stable/c/72f367417a6aee56821d0b0114cfd2b080008b63'
  - url: 'https://git.kernel.org/stable/c/19dfc37c9deefa69dc805d01d35d1f2fd7902e33'
  - url: 'https://git.kernel.org/stable/c/5787887eba0f0979a8c86d03a8e891395d5c24ad'
  - url: 'https://git.kernel.org/stable/c/01835d3a3709be508ae5209f806640336c48e395'
  - url: 'https://git.kernel.org/stable/c/6fc0c818b1cac66003e937c8a0d3bfb23fd3f130'
  - url: 'https://git.kernel.org/stable/c/23a9163cc40b4996ba1e20533b1210a1a0bee416'
  - url: 'https://git.kernel.org/stable/c/0b157166e612b70f98a332b6c7be7eac6f8e9593'
tags:
  - cve.org
epss: 0.00223
epssPercentile: 0.12968
ingestedAt: '2026-11-05T20:33:06.391Z'
---

## Overview

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().

## Affected

- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < c7956ec99ad0e173720d95de9fa788bb077809f2`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 72f367417a6aee56821d0b0114cfd2b080008b63`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 19dfc37c9deefa69dc805d01d35d1f2fd7902e33`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 5787887eba0f0979a8c86d03a8e891395d5c24ad`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 01835d3a3709be508ae5209f806640336c48e395`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 6fc0c818b1cac66003e937c8a0d3bfb23fd3f130`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 23a9163cc40b4996ba1e20533b1210a1a0bee416`
- `Linux >= 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c < 0b157166e612b70f98a332b6c7be7eac6f8e9593`
- `Linux 4.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
