Dear LittleCMS community:
 
A null pointer dereference flaw was found in LittleCMS 1.18  by handling  transformations on monochrome profiles.
See attached a patch for lcms-1.18 that corrects such bug.
 
I have repacked the distribution, applying this patch,  to become: lcms-1.18a
 
Severity:  Low.

Description:  Monochrome matrix-shaper profiles, when used as output may raise a NULL dereferencing when the curves are malformed.

Comments: No code injection can be done using this bug. Using monochrome profiles is rare, and using  them in the output direction is a corner case.
This bug is only exploitable if the application uses monochrome output, and then the crafted profile should be in the output direction.
Does not affect input profiles, so an attacker could NOT use this flaw by creating a specially-crafted image.  
  
Patch contains: A check is performed an the function returns NULL when such error is detected.
 
Many thanks to Robert Buchholz, from Gentoo for providing the patch.

Copyright (C) 2009 Marti Maria

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Best regards
Marti Maria
The LittleCMS project
http://www.littlecms.com
 

Attachment: lcms-CVE-2009-0793.patch
Description: Binary data

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to