CVE-2026-99245 PUBLISHED

KEYS: Fix key_reject_and_link() race with keyring restriction

Assigner: Linux
Reserved: 25.09.2026 Published: 03.11.2026 Updated: 03.11.2026

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

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to c7956ec99ad0e173720d95de9fa788bb077809f2 (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 72f367417a6aee56821d0b0114cfd2b080008b63 (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 19dfc37c9deefa69dc805d01d35d1f2fd7902e33 (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 5787887eba0f0979a8c86d03a8e891395d5c24ad (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 01835d3a3709be508ae5209f806640336c48e395 (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 6fc0c818b1cac66003e937c8a0d3bfb23fd3f130 (excl.)
  • affected from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to 23a9163cc40b4996ba1e20533b1210a1a0bee416 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.7 is affected
  • unaffected from 0 to 4.7 (excl.)
  • unaffected from 5.10.273 to 5.10.* (incl.)
  • unaffected from 5.15.224 to 5.15.* (incl.)
  • unaffected from 6.1.191 to 6.1.* (incl.)
  • unaffected from 6.6.161 to 6.6.* (incl.)
  • unaffected from 6.12.115 to 6.12.* (incl.)
  • unaffected from 6.18.60 to 6.18.* (incl.)
  • unaffected from 7.2.14 to 7.2.* (incl.)
  • unaffected from 7.3.1 to 7.3.* (incl.)

References