Bluetooth: sco: fix information leak to userspace
commit86d6d5a9bb922d67b4ecde01277c39b40ea74b90
authorVasiliy Kulikov <segoon@openwall.com>
Mon, 14 Feb 2011 10:54:26 +0000 (14 13:54 +0300)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:28 +0000 (30 16:53 +0200)
tree3ce0a27e493cc12dc712a05ea79b9560bba0feb8
parent130d82a534d65c3895ab65e6d309c3609890ddfc
Bluetooth: sco: fix information leak to userspace

commit c4c896e1471aec3b004a693c689f60be3b17ac86 upstream.

struct sco_conninfo has one padding byte in the end.  Local variable
cinfo of type sco_conninfo is copied to userspace with this uninizialized
one byte, leading to old stack contents leak.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bluetooth/sco.c