From: Chris Wright Date: Wed, 4 Jun 2008 16:16:33 +0000 (-0700) Subject: asn1: additional sanity checking during BER decoding X-Git-Tag: v2.6.26-rc6~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb2c43594f22843e9f3153da151deaba1a834c5;p=pandora-kernel.git asn1: additional sanity checking during BER decoding - Don't trust a length which is greater than the working buffer. An invalid length could cause overflow when calculating buffer size for decoding oid. - An oid length of zero is invalid and allows for an off-by-one error when decoding oid because the first subid actually encodes first 2 subids. - A primitive encoding may not have an indefinite length. Thanks to Wei Wang from McAfee for report. Cc: Steven French Cc: stable@kernel.org Acked-by: Patrick McHardy Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed