Linux
keys: Pin request_key_auth payload in instantiate paths
In the Linux kernel, the following vulnerability has been resolved: keys: Pin request_key_auth payload in instantiate paths A: request_key() B: KEYCTL_INSTANTIATE_IOV ================ ========================= create auth key store rka in auth key wait for helper get auth key load rka from auth key copy user payload sleep on #PF helper completed detach and free rka destroy auth key wake up use rka->target_key **USE-AFTER-FREE** Give request_key_auth payloads a refcount. Take a payload reference while authkey->sem stabilizes the payload and revocation state. Hold that reference across the instantiate and reject paths. Drop the auth key owning reference from revoke and destroy. [jarkko: Replaced the first two paragraphs of text with an actual concurrency scenario.]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < d8274181b0f28d450b42489723a5ba81042158d7
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < 4982bfabce6b33b3c9eddb4fb900fe5568b7cf91
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < 708709c65a1832a99b0eef8ae46e343ddaca3d06
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < 35ab4db86774d82389e4b9559e26ab7f68d8e395
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < f9b68632ac93cc742f2e411021c4dbfe452ea0c2
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < 7216ce8cb12fee44e309503955bb83806b106129
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < 83c0a1cb296d955d5f4d1f0bd8a769ba8ed8c29f
- >= b5f545c880a2a47947ba2118b2509644ab7a2969, < fd15b457a86939c38aa12116adabd8ff686c5e51
Fixed in d8274181b0f28d450b42489723a5ba81042158d7, 4982bfabce6b33b3c9eddb4fb900fe5568b7cf91, 708709c65a1832a99b0eef8ae46e343ddaca3d06, 35ab4db86774d82389e4b9559e26ab7f68d8e395, f9b68632ac93cc742f2e411021c4dbfe452ea0c2, 7216ce8cb12fee44e309503955bb83806b106129, 83c0a1cb296d955d5f4d1f0bd8a769ba8ed8c29f, fd15b457a86939c38aa12116adabd8ff686c5e51
- 2.6.16
Fixed in 0, 5.10.260, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2
Mitigation
Upgrade Linux to d8274181b0f28d450b42489723a5ba81042158d7 or 4982bfabce6b33b3c9eddb4fb900fe5568b7cf91 or 708709c65a1832a99b0eef8ae46e343ddaca3d06 or 35ab4db86774d82389e4b9559e26ab7f68d8e395 or f9b68632ac93cc742f2e411021c4dbfe452ea0c2 or 7216ce8cb12fee44e309503955bb83806b106129 or 83c0a1cb296d955d5f4d1f0bd8a769ba8ed8c29f or fd15b457a86939c38aa12116adabd8ff686c5e51 or later.
Upgrade Linux to 0 or 5.10.260 or 5.15.211 or 6.1.177 or 6.6.144 or 6.12.95 or 6.18.38 or 7.1.3 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.