Chris Wright ddb2c43594 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 <sfrench@us.ibm.com>
Cc: stable@kernel.org
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-05 14:24:54 -07:00
..
2008-01-28 14:58:15 -08:00
2008-01-08 23:30:18 -08:00
2008-05-21 17:47:54 -07:00
2008-05-21 17:47:54 -07:00
2008-03-06 16:22:02 -08:00
2007-04-25 22:28:20 -07:00
2008-06-04 15:16:12 -07:00
2008-05-01 08:03:58 -07:00
2008-06-05 04:02:38 +09:00
2008-03-26 16:51:09 -07:00
2008-03-26 16:51:09 -07:00