Skip to content

Commit

Permalink
Bluetooth: cmtp: fix information leak to userland
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
segoon authored and Gustavo F. Padovan committed Dec 1, 2010
1 parent 5520d20 commit 3185fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bluetooth/cmtp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3185fbd

Please sign in to comment.