Bug 473463 - (CVE-2008-5317) CVE-2008-5317 lcms: unsigned -> signed integer cast issue in cmsAllocGamma
CVE-2008-5317 lcms: unsigned -> signed integer cast issue in cmsAllocGamma
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 473469 473470 479384 833921
  Show dependency treegraph
Reported: 2008-11-28 11:29 EST by Tomas Hoger
Modified: 2012-06-20 10:16 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-29 04:38:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch used in SuSE security updates (562 bytes, patch)
2008-11-28 11:30 EST, Tomas Hoger
no flags Details | Diff

  None (edit)
Description Tomas Hoger 2008-11-28 11:29:20 EST
There was a unsigned -> signed integer cast issue in cmsAllocGamma
in src/cmsgamma.c.  The argument to this function - nEntries - may be
read from the file and not validated before cmsAllocGamma is called.
As nEntries in cmsAllocGamma is signed integer, its value may possibly
be negative and can result in an insufficient memory allocation.

This issue was fixed upstream in 1.17.

Upstream CVS commit:

Comment 1 Tomas Hoger 2008-11-28 11:30:38 EST
Created attachment 325025 [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-gamma-overflow.patch.
Comment 2 Tomas Hoger 2008-11-28 11:31:07 EST
Affected lcms versions are currently in Red Hat Enterprise Linux 5 and Fedora EPEL 4 (both based on upstream 1.15).
Comment 5 Tomas Hoger 2008-12-03 12:16:22 EST
CVE id CVE-2008-5317 was assigned to this issue:

Integer signedness error in the cmsAllocGamma function in
src/cmsgamma.c in Little cms color engine (aka lcms) before 1.17
allows attackers to have an unknown impact via a file containing a
certain "number of entries" value, which is interpreted improperly,
leading to an allocation of insufficient memory.

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