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.
Debian DLA
Ubuntu USN