UBUNTU-CVE-2026-99222: Medium severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: keys: Protect the read method check against type removal keyctlreadkey() checks key->type->read without holding key->sem. A reference keeps the key alive, but does not pin the module containing its type. A surviving RxRPC key can therefore be read while AFRXRPC is being unloaded: KEYCTLREAD task Module unload and key GC ---------------- ------------------------ lookupuserkey() permission / possession checks load key->type afrxrpcexit() unregisterkeytype() GC: downwrite(key->sem) GC: retype to keytypedead GC: upwrite(key->sem) unregisterkeytype() returns freemodule() read saved type's read member The final access can read freed module storage. The read invocation in keyctlreadkey() is already protected by key->sem, but the earlier method check is outside that critical section. Move the method check into keyctlreadkey(), after keyvalidate() and under its existing read hold on key->sem. The check and invocation then use the same protected type for length queries and every read retry. The GC cannot retype the key until the semaphore is released, and type unregistration waits for that GC pass before the module can be freed. Return -EOPNOTSUPP when validation succeeds and the type has no read method. A temporary buffer may now be allocated before this result; allocation and copying to userspace remain outside the semaphore.
Affected Software
Event History
Frequently Asked Questions
What conditions are needed to trigger the issue?
A surviving RxRPC key must be read while the AF_RXRPC module is being unloaded. The unsafe path occurs because the key remains referenced, but the module containing its key type is not pinned during the earlier read-method check.
Which Ubuntu kernel package variants are listed as affected?
The listed software includes ubuntu/linux, ubuntu/linux-fips, ubuntu/linux-aws, ubuntu/linux-azure, ubuntu/linux-gcp, ubuntu/linux-oracle, ubuntu/linux-aws-fips, and ubuntu/linux-azure-fips.