]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO)
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:55 +0000 (11:31 +0000)
committerGuangyu Sun <guangyu.sun@oracle.com>
Mon, 8 Oct 2012 17:00:02 +0000 (10:00 -0700)
commitd67a27ae73015d2bde60e4dfe84fa3c93e774e6f
treef8b0e6020a941745b30c49cbde8f527d3f7ac789
parent173456903491a5d686d73fde551ae92c77af5399
dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO)

[ Upstream commit 7b07f8eb75aa3097cdfd4f6eac3da49db787381d ]

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 <minipli@googlemail.com>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/dccp/ccids/ccid3.c