# CVE-2026-99245: KEYS: Fix key_reject_and_link() race with keyring restriction

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-03T11:15:15.050Z
- Modified: 2026-11-03T20:18:30.880Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before c7956ec99ad0e173720d95de9fa788bb077809f2; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 72f367417a6aee56821d0b0114cfd2b080008b63; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 19dfc37c9deefa69dc805d01d35d1f2fd7902e33; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 5787887eba0f0979a8c86d03a8e891395d5c24ad; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 01835d3a3709be508ae5209f806640336c48e395; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 6fc0c818b1cac66003e937c8a0d3bfb23fd3f130; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 23a9163cc40b4996ba1e20533b1210a1a0bee416; from 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c before 0b157166e612b70f98a332b6c7be7eac6f8e9593; 4.7 (not affected: before 4.7; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.161 up to 6.6.*; from 6.12.115 up to 6.12.*; from 6.18.60 up to 6.18.*; from 7.2.14 up to 7.2.*; from 7.3.1 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/c7956ec99ad0e173720d95de9fa788bb077809f2>
- <https://git.kernel.org/stable/c/2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f>
- <https://git.kernel.org/stable/c/72f367417a6aee56821d0b0114cfd2b080008b63>
- <https://git.kernel.org/stable/c/19dfc37c9deefa69dc805d01d35d1f2fd7902e33>
- <https://git.kernel.org/stable/c/5787887eba0f0979a8c86d03a8e891395d5c24ad>
- <https://git.kernel.org/stable/c/01835d3a3709be508ae5209f806640336c48e395>
- <https://git.kernel.org/stable/c/6fc0c818b1cac66003e937c8a0d3bfb23fd3f130>
- <https://git.kernel.org/stable/c/23a9163cc40b4996ba1e20533b1210a1a0bee416>
- <https://git.kernel.org/stable/c/0b157166e612b70f98a332b6c7be7eac6f8e9593>

## Sources

- CVE List: [CVE-2026-99245](https://www.cve.org/CVERecord?id=CVE-2026-99245), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2026-99245](https://nvd.nist.gov/vuln/detail/CVE-2026-99245), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-99245 · Whole record: https://cve.day/CVE-2026-99245.json · Rebuilt by cve.day 2026-11-25T22:59:48.372Z
