KEYS: Fix key_reject_and_link() race with keyring restriction

State
Published
Severity
Not Scored
Published
Nov 3, 2026
Updated
Nov 3, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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

ProductVersions
Linux Linux5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before c7956ec99ad0e173720d95de9fa788bb077809f2 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 72f367417a6aee56821d0b0114cfd2b080008b63 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 19dfc37c9deefa69dc805d01d35d1f2fd7902e33 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 5787887eba0f0979a8c86d03a8e891395d5c24ad Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 01835d3a3709be508ae5209f806640336c48e395 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 6fc0c818b1cac66003e937c8a0d3bfb23fd3f130 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 23a9163cc40b4996ba1e20533b1210a1a0bee416 Affected5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c to before 0b157166e612b70f98a332b6c7be7eac6f8e9593 Affected
Linux Linux4.7 Affectedbefore 4.7 Not Affected5.10.273 through 5.10.* Not Affected5.15.224 through 5.15.* Not Affected6.1.191 through 6.1.* Not Affected6.6.161 through 6.6.* Not Affected6.12.115 through 6.12.* Not Affected6.18.60 through 6.18.* Not Affected7.2.14 through 7.2.* Not Affected7.3.1 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.