Computer Security
[EN] securityvulns.ru
no-pyccku



Related information

  Sun Java JRE / JDK multiple security vulnerabilities

  [ GLSA 200804-28 ] JRockit: Multiple vulnerabilities

  [NEWS] Sun JDK Image Parsing Library Vulnerabilities (More ICC Parsing)

  US-CERT Technical Cyber Security Alert TA08-066A -- Sun Updates for Multiple Vulnerabilities in Java

From:Chris Evans <scarybeasts_(at)_gmail.com>
Date:07.03.2008
Subject:Sun JDK image parsing vulnerabilities

Hi,

A couple more JPEG ICC parsing bugs were fixed in the latest JDK updates.

Full technical details:
http://scary.beasts.org/security/CESA-2007-005.html

The most interesting part is the faulty code:
 Limit = SpGetUInt32 (Buf);
...
 UInt16Ptr = (KpUInt16_t *)SpMalloc (Limit * (KpInt32_t)sizeof (*UInt16Ptr));
...
 for (Index = 0; Index < Limit; Index++)
   *UInt16Ptr++ = SpGetUInt16 (Buf);
...

And the image to trigger:
http://scary.beasts.org/misc/jdk/evilicc2.jpg

Normally, the heap overflow would just terminate the process as the
copy length is kind of wild. However, JDK installs a SEGV handler
which accesses a lot of (potentially trashed) memory in the process of
putting together a meaningful crash dump. It's quite likely that this
makes the condition exploitable as per a previous bug in this area:
http://scary.beasts.org/security/CESA-2006-004.html

Blog post for all of the above:
http://scarybeastsecurity.blogspot.com/2008/03/sun-jdk-image-parsing-vulnerabilit
ies.html


Cheers
Chris

About | Terms of use | Privacy Policy
© SecurityVulns, 3APA3A, Vladimir Dubrovin
Nizhny Novgorod

 
 



Rating@Mail.ru
test server