Commit db5356da authored by David Howells's avatar David Howells Committed by Greg Kroah-Hartman

[PATCH] key: plug request_key_auth memleak (CAN-2005-3119)

Plug request_key_auth memleak.  This can be triggered by unprivileged
users, so is local DoS.
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b17681a2
...@@ -96,6 +96,7 @@ static void request_key_auth_destroy(struct key *key) ...@@ -96,6 +96,7 @@ static void request_key_auth_destroy(struct key *key)
kenter("{%d}", key->serial); kenter("{%d}", key->serial);
key_put(rka->target_key); key_put(rka->target_key);
kfree(rka);
} /* end request_key_auth_destroy() */ } /* end request_key_auth_destroy() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment