projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5520d20
)
Bluetooth: cmtp: fix information leak to userland
author
Vasiliy Kulikov
<segooon@gmail.com>
Sat, 30 Oct 2010 14:26:26 +0000
(18:26 +0400)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Wed, 1 Dec 2010 23:04:35 +0000
(21:04 -0200)
Structure cmtp_conninfo is copied to userland with some padding fields
unitialized. It leads to leaking of contents of kernel stack memory.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/cmtp/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/cmtp/core.c
b/net/bluetooth/cmtp/core.c
index ec0a1347f933cbdb9ca70be4f869d459f0ec9565..8e5f292529accd5784482c72a2090816a1ab7df6 100644
(file)
--- a/
net/bluetooth/cmtp/core.c
+++ b/
net/bluetooth/cmtp/core.c
@@
-78,6
+78,7
@@
static void __cmtp_unlink_session(struct cmtp_session *session)
static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci)
{
+ memset(ci, 0, sizeof(*ci));
bacpy(&ci->bdaddr, &session->bdaddr);
ci->flags = session->flags;