Description
The get_instantiation_keyring function in security/keys/keyctl.c in the KEYS subsystem in the Linux kernel before 2.6.32-rc5 does not properly maintain the reference count of a keyring, which allows local users to gain privileges or cause a denial of service (OOPS) via vectors involving calls to this function without specifying a keyring by ID, as demonstrated by a series of keyctl request2 and keyctl list commands.
References
- [oss-security] 20091022 CVE request: kernel: get_instantiation_keyring() should inc the keyring refcount in all cases mailing-list
- USN-864-1 vendor-advisory
- SUSE-SA:2010:001 vendor-advisory
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=21279cfa107af07ef985539ac0de2152b9cba5f5
- http://twitter.com/spendergrsec/statuses/4916661870
- http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.32-rc5
- [oss-security] 20091022 Re: CVE request: kernel: get_instantiation_keyring() should inc the keyring refcount in all cases mailing-list
- 37086 third-party-advisory
- 38017 third-party-advisory