aboutsummaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2010-02-23 08:55:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-15 12:06:40 -0400
commit437ccbe9b5cb9c2df272c6ff7a55ef494c2d0d67 (patch)
treec30796ad5a8d4c5a3fac08184953c9f17b96806f /net/can
parent70702844e7be631ea810e752c2f089792b3364bc (diff)
netfilter: xt_recent: fix buffer overflow
commit 2c08522e5d2f0af2d6f05be558946dcbf8173683 upstream. 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 <tim.gardner@canonical.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions