From: Dan Rosenberg Date: Fri, 24 Jun 2011 12:38:05 +0000 (-0400) Subject: Bluetooth: Prevent buffer overflow in l2cap config request X-Git-Tag: v3.0~41^2~3^2^2~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ac28817536797fd40e9646452183606f9e17f71;p=pandora-kernel.git Bluetooth: Prevent buffer overflow in l2cap config request A remote user can provide a small value for the command size field in the command header of an l2cap configuration request, resulting in an integer underflow when subtracting the size of the configuration request header. This results in copying a very large amount of data via memcpy() and destroying the kernel heap. Check for underflow. Signed-off-by: Dan Rosenberg Cc: stable Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed