Home
last modified time | relevance | path

Searched hist:"94 efe72f762e2c147d8146d637d5ece5614c8d94" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/keys/
H A Dkeyring.cdiff 94efe72f762e2c147d8146d637d5ece5614c8d94 Thu Aug 04 15:07:07 CDT 2005 David Howells <dhowells@redhat.com> [PATCH] Destruction of failed keyring oopses

The attached patch makes sure that a keyring that failed to instantiate
properly is destroyed without oopsing [CAN-2005-2099].

The problem occurs in three stages:

(1) The key allocator initialises the type-specific data to all zeroes. In
the case of a keyring, this will become a link in the keyring name list
when the keyring is instantiated.

(2) If a user (any user) attempts to add a keyring with anything other than
an empty payload, the keyring instantiation function will fail with an
error and won't add the keyring to the name list.

(3) The keyring's destructor then sees that the keyring has a description
(name) and tries to remove the keyring from the name list, which oopses
because the link pointers are both zero.

This bug permits any user to take down a box trivially.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>