diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-10-30 16:26:26 +0200 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-02 00:04:35 +0100 |
commit | 3185fbd9d7bb166992f072440b3329f58bf2c60a (patch) | |
tree | 30f70ab76f2053f678d39dff3852a4ea0186825e /net/bluetooth/cmtp | |
parent | Bluetooth: bnep: fix information leak to userland (diff) | |
download | linux-3185fbd9d7bb166992f072440b3329f58bf2c60a.tar.xz linux-3185fbd9d7bb166992f072440b3329f58bf2c60a.zip |
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 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) 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; |