summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:21 +0200
committerJiri Slaby <jslaby@suse.cz>2016-07-18 13:52:17 +0200
commit467828496aeb7452d32c045cb4e5a83a2f4fdfdc (patch)
treef0adf1843db53c22965df55fc32d635cf624a874 /include
parent760bd1ade1ebe9b3882009f4c4cda7745908822d (diff)
downloadlwn-467828496aeb7452d32c045cb4e5a83a2f4fdfdc.tar.gz
lwn-467828496aeb7452d32c045cb4e5a83a2f4fdfdc.zip
netfilter: x_tables: don't move to non-existent next rule
commit f24e230d257af1ad7476c6e81a8dc3127a74204e upstream. Ben Hawkes says: In the mark_source_chains function (net/ipv4/netfilter/ip_tables.c) it is possible for a user-supplied ipt_entry structure to have a large next_offset field. This field is not bounds checked prior to writing a counter value at the supplied offset. Base chains enforce absolute verdict. User defined chains are supposed to end with an unconditional return, xtables userspace adds them automatically. But if such return is missing we will move to non-existent next rule. Reported-by: Ben Hawkes <hawkes@google.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions