diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-10-30 18:26:26 +0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-01 21:04:35 -0200 |
commit | 3185fbd9d7bb166992f072440b3329f58bf2c60a (patch) | |
tree | 30f70ab76f2053f678d39dff3852a4ea0186825e /net/bluetooth/cmtp | |
parent | 5520d20f68310fc158dcbbecfd5eac5cdfc5a241 (diff) | |
download | kernel_samsung_espresso10-3185fbd9d7bb166992f072440b3329f58bf2c60a.zip kernel_samsung_espresso10-3185fbd9d7bb166992f072440b3329f58bf2c60a.tar.gz kernel_samsung_espresso10-3185fbd9d7bb166992f072440b3329f58bf2c60a.tar.bz2 |
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>
Diffstat (limited to 'net/bluetooth/cmtp')
-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 ec0a134..8e5f292 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) 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; |