diff options
| author | 2010-02-23 14:55:21 +0100 | |
|---|---|---|
| committer | 2010-02-23 14:55:21 +0100 | |
| commit | 2c08522e5d2f0af2d6f05be558946dcbf8173683 (patch) | |
| tree | b82c724797d76d29143c6b267bd006f40466f9c3 /include/linux/netfilter | |
| parent | netfilter: nf_conntrack_reasm: properly handle packets fragmented into a single fragment (diff) | |
| download | linux-dev-2c08522e5d2f0af2d6f05be558946dcbf8173683.tar.xz linux-dev-2c08522e5d2f0af2d6f05be558946dcbf8173683.zip | |
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 <tim.gardner@canonical.com>
Cc: stable@kernel.org
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter')
0 files changed, 0 insertions, 0 deletions
