From: Mathias Krause Date: Wed, 15 Aug 2012 11:31:48 +0000 (+0000) Subject: Bluetooth: RFCOMM - Fix info leak in getsockopt(BT_SECURITY) X-Git-Tag: v3.2.30~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1621af48f4c2cf3e10438507bea36af7189603b9;p=pandora-kernel.git Bluetooth: RFCOMM - Fix info leak in getsockopt(BT_SECURITY) [ Upstream commit 9ad2de43f1aee7e7274a4e0d41465489299e344b ] The RFCOMM code fails to initialize the key_size member of struct bt_security before copying it to userland -- that for leaking one byte kernel stack. Initialize key_size with 0 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