]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:38:42 +0000 (10:38 -0700)
commit303490bccf35e44a4ea722e272d97843e71018e7
treedcb77813beb458edabbc96ea7a3960e61446c80e
parent9f89763e8240edf8014e51513c9aba649f878c1b
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>
net/dccp/ccids/ccid3.c