From: Tim Gardner Date: Tue, 23 Feb 2010 13:55:21 +0000 (+0100) Subject: netfilter: xt_recent: fix buffer overflow X-Git-Tag: v2.6.34-rc1~233^2~90^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c08522e5d2f0af2d6f05be558946dcbf8173683;p=pandora-kernel.git netfilter: xt_recent: fix buffer overflow e->index overflows e->stamps[] every ip_pkt_list_tot packets. Consider the case when ip_pkt_list_tot==1; the first packet received is stored in e->stamps[0] and e->index is initialized to 1. The next received packet timestamp is then stored at e->stamps[1] in recent_entry_update(), a buffer overflow because the maximum e->stamps[] index is 0. Signed-off-by: Tim Gardner Cc: stable@kernel.org Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed