diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2010-02-23 14:55:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-15 08:50:00 -0700 |
commit | 6f2deb6aad5e242d5573ae8d98a90a454f5e79d0 (patch) | |
tree | ed7d736688887e3d24ce6c4ec937db48cc7f1e0a /net/tipc | |
parent | 81fc8e0872c9f00ee7fb01305822758cb4bb8a2d (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/tipc')
0 files changed, 0 insertions, 0 deletions