From: Vasiliy Kulikov Date: Sun, 20 Mar 2011 14:42:52 +0000 (+0100) Subject: netfilter: ipt_CLUSTERIP: fix buffer overflow X-Git-Tag: v2.6.39-rc1~390^2~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961ed183a9fd080cf306c659b8736007e44065a5;p=pandora-kernel.git netfilter: ipt_CLUSTERIP: fix buffer overflow 'buffer' string is copied from userspace. It is not checked whether it is zero terminated. This may lead to overflow inside of simple_strtoul(). Changli Gao suggested to copy not more than user supplied 'size' bytes. It was introduced before the git epoch. Files "ipt_CLUSTERIP/*" are root writable only by default, however, on some setups permissions might be relaxed to e.g. network admin user. Signed-off-by: Vasiliy Kulikov Acked-by: Changli Gao Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed