From: Mathias Krause Date: Wed, 15 Aug 2012 11:31:55 +0000 (+0000) Subject: dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO) X-Git-Tag: v3.6-rc3~10^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b07f8eb75aa3097cdfd4f6eac3da49db787381d;p=pandora-kernel.git dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO) The CCID3 code fails to initialize the trailing padding bytes of struct tfrc_tx_info added for alignment on 64 bit architectures. It that for potentially leaks four bytes kernel stack via the getsockopt() syscall. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause Cc: Gerrit Renker Signed-off-by: David S. Miller --- Reading git-diff-tree failed