From: Mathias Krause Date: Wed, 15 Aug 2012 11:31:51 +0000 (+0000) Subject: Bluetooth: L2CAP - Fix info leak via getsockname() X-Git-Tag: v3.2.30~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79690021eba0738861965187af2f75035f846d6f;p=pandora-kernel.git Bluetooth: L2CAP - Fix info leak via getsockname() [ Upstream commit 792039c73cf176c8e39a6e8beef2c94ff46522ed ] The L2CAP code fails to initialize the l2_bdaddr_type member of struct sockaddr_l2 and the padding byte added for alignment. It that for leaks two bytes kernel stack via the getsockname() syscall. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed