From: Dan Rosenberg Date: Fri, 12 Nov 2010 20:44:42 +0000 (-0800) Subject: x25: Prevent crashing when parsing bad X.25 facilities X-Git-Tag: v2.6.27.57~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ee97ce543460d963911ca8d0b8461ba7b48846d;p=pandora-kernel.git x25: Prevent crashing when parsing bad X.25 facilities commit 5ef41308f94dcbb3b7afc56cdef1c2ba53fa5d2f upstream. Now with improved comma support. On parsing malformed X.25 facilities, decrementing the remaining length may cause it to underflow. Since the length is an unsigned integer, this will result in the loop continuing until the kernel crashes. This patch adds checks to ensure decrementing the remaining length does not cause it to wrap around. Signed-off-by: Dan Rosenberg Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed