Bug 473462 (CVE-2008-5316) - CVE-2008-5316 lcms: insufficient input validation in ReadEmbeddedTextTag
Summary: CVE-2008-5316 lcms: insufficient input validation in ReadEmbeddedTextTag
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-5316
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 473469 473470 479384 833921
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-28 16:24 UTC by Tomas Hoger
Modified: 2019-09-29 12:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-29 08:39:11 UTC
Embargoed:


Attachments (Terms of Use)
Patch used in SuSE security updates (5.40 KB, patch)
2008-11-28 16:26 UTC, Tomas Hoger
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:0011 0 normal SHIPPED_LIVE Moderate: lcms security update 2009-01-07 13:38:58 UTC

Description Tomas Hoger 2008-11-28 16:24:18 UTC
The ReadEmbeddedTextTag in src/cmsio1.c did not properly check amount
of data read from the input file to the buffer provided as one of its
arguments.  Value read from the file was used as an upper bound without
any validation.

This issue was fixed upstream in 1.16.

Upstream CVS commit:
http://lcms.cvs.sourceforge.net/viewvc/lcms/lcms/src/cmsio1.c?r1=1.33&r2=1.34
(some of the previous changes may be needed for 1.15)

References:
http://www.openwall.com/lists/oss-security/2008/11/28/3

Comment 1 Tomas Hoger 2008-11-28 16:26:03 UTC
Created attachment 325024 [details]
Patch used in SuSE security updates

This was extracted from SuSE liblcms-1.15-32.src.rpm.  Original name of the patch was lcms-CVE-2007-2741.patch, but CVE-2007-2741 is a different issue that got fixed upstream in 1.15.

Comment 2 Tomas Hoger 2008-11-28 16:27:06 UTC
Affected lcms versions are currently in Red Hat Enterprise Linux 5 and EPEL 4 (both based on upstream 1.15).

Comment 4 Tomas Hoger 2008-12-03 17:16:27 UTC
CVE id CVE-2008-5316 was assigned to this issue:

Buffer overflow in the ReadEmbeddedTextTag function in src/cmsio1.c in
Little cms color engine (aka lcms) before 1.16 allows attackers to
have an unknown impact via vectors related to a length parameter
inconsistency involving the contents of "the input file," a different
vulnerability than CVE-2007-2741.


Note You need to log in before you can comment on or make changes to this bug.