From: Marcel Holtmann Date: Fri, 4 May 2007 22:35:59 +0000 (+0200) Subject: [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks X-Git-Tag: v2.6.22-rc1~822^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0878b6667f28772aa7d6b735abff53efc7bf6d91;p=pandora-kernel.git [Bluetooth] Fix L2CAP and HCI setsockopt() information leaks The L2CAP and HCI setsockopt() implementations have a small information leak that makes it possible to leak kernel stack memory to userspace. If the optlen parameter is 0, no data will be copied by copy_from_user(), but the uninitialized stack buffer will be read and stored later. A call to getsockopt() can now retrieve the leaked information. To fix this problem the stack buffer given to copy_from_user() must be initialized with the current settings. Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed