User: Password:
|
|
Subscribe / Log in / New account

[PATCH] key: plug request_key_auth memleak

From:  Linux Kernel Mailing List <linux-kernel-AT-vger.kernel.org>
To:  git-commits-head-AT-vger.kernel.org
Subject:  [PATCH] key: plug request_key_auth memleak
Date:  Sat, 8 Oct 2005 16:01:12 -0700
Archive-link:  Article, Thread

tree 86d0006605f5abe600a2b3a7f6d03cf554c4e761
parent c2059b2e0b209a0674c21f78337bb158d3ccb22b
author David Howells <dhowells@redhat.com> Fri, 07 Oct 2005 15:01:09 +0100
committer Linus Torvalds <torvalds@g5.osdl.org> Sun, 09 Oct 2005 04:53:31 -0700

[PATCH] key: plug request_key_auth memleak

Plug request_key_auth memleak.  This can be triggered by unprivileged
users, so is local DoS.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

 security/keys/request_key_auth.c |    1 +
 1 files changed, 1 insertion(+)

diff --git a/security/keys/request_key_auth.c b/security/keys/request_key_auth.c
--- a/security/keys/request_key_auth.c
+++ b/security/keys/request_key_auth.c
@@ -96,6 +96,7 @@ static void request_key_auth_destroy(str
 	kenter("{%d}", key->serial);
 
 	key_put(rka->target_key);
+	kfree(rka);
 
 } /* end request_key_auth_destroy() */
 


(Log in to post comments)


Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds