Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Linux Kernel Mailing List <linux-kernel <at> vger.kernel.org>
Subject: [PATCH] key: plug request_key_auth memleak
Newsgroups: gmane.linux.kernel.commits.head
Date: Saturday 8th October 2005 23:01:12 UTC (over 12 years ago)
tree 86d0006605f5abe600a2b3a7f6d03cf554c4e761
parent c2059b2e0b209a0674c21f78337bb158d3ccb22b
author David Howells  Fri, 07 Oct 2005 15:01:09 +0100
committer Linus Torvalds  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 
Signed-Off-By: David Howells 
Signed-off-by: Linus Torvalds 

 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() */
 
CD: 3ms