mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
c2059b2e0b
commit
74fd92c511
1 changed files with 1 additions and 0 deletions
|
@ -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() */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue