diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-10-30 10:26:26 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-01 18:04:35 -0500 |
commit | 3185fbd9d7bb166992f072440b3329f58bf2c60a (patch) | |
tree | 30f70ab76f2053f678d39dff3852a4ea0186825e | |
parent | 5520d20f68310fc158dcbbecfd5eac5cdfc5a241 (diff) |
Bluetooth: cmtp: fix information leak to userland
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>
-rw-r--r-- | net/bluetooth/cmtp/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c index ec0a1347f933..8e5f292529ac 100644 --- 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) | |||
78 | 78 | ||
79 | static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) | 79 | static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) |
80 | { | 80 | { |
81 | memset(ci, 0, sizeof(*ci)); | ||
81 | bacpy(&ci->bdaddr, &session->bdaddr); | 82 | bacpy(&ci->bdaddr, &session->bdaddr); |
82 | 83 | ||
83 | ci->flags = session->flags; | 84 | ci->flags = session->flags; |