Bug 225461 - Kernel <2.6.25.5 asn1: additional sanity checking during BER decoding (CVE-2008-1673)
Bug#: 225461 (CVE-2008-1673) Product:  Gentoo Security Version: unspecified Platform: All
OS/Version: Linux Status: NEW Severity: normal Priority: P2
Resolution:  Assigned To: security@gentoo.org Reported By: rbu@gentoo.org
Component: Kernel
URL:  http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.25.y.git;a=commit;h=33afb8403f361919aa5c8fe1d0a4f5ddbfbbea3c
Summary: Kernel <2.6.25.5 asn1: additional sanity checking during BER decoding (CVE-2008-1673)
Keywords:  
Status Whiteboard: [linux >2.6.23 <2.6.25.5]
Opened: 2008-06-08 22:28 0000
Description:   Opened: 2008-06-08 22:28 0000
asn1: additional sanity checking during BER decoding (CVE-2008-1673)

upstream commit: ddb2c43594f22843e9f3153da151deaba1a834c5

- 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.

------- Comment #1 From Kerin Millar 2009-07-20 19:01:24 0000 -------
hardened-kernel unaffected at present time. Removing alias.

PS: Anything using >=genpatches-2.6.25-6 is unaffected