Bug 1251749 (CVE-2015-6673)

Summary: CVE-2015-6673 libpgf: Use-after-free bug in Decoder.cpp
Product: [Fedora] Fedora Reporter: pcheng <gns.encore.mtl>
Component: libpgfAssignee: Rex Dieter <rdieter>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: alekcejk, carnil, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Fixed In Version: 6.14.12-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-19 07:55:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
sample for reproducing crash none

Description pcheng 2015-08-09 15:22:29 UTC
Created attachment 1060748 [details]
sample for reproducing crash

Description of problem:
Recently I reported an use-after-free issue in Decoder.cpp to upstream. And it's fixed by the upstream. The problem is due to lack of validation of ColorTableSize. 

The bug was fixed by upstream:

Version-Release number of selected component (if applicable):
Versions before 6.15.32

How reproducible:
In the upstream's repo, there is a proof-of-concept utility(https://sourceforge.net/p/libpgf/code/HEAD/tree/trunk/pgf ,    note: the bug is in the library, not in this utility). Issuing the following commands with the attached crash.pgf:

$ ./libpgf-code-136-trunk/pgf/build/src/pgf -d crash.pgf out.gif

Comment 1 Fedora Update System 2015-08-10 17:33:38 UTC
libpgf-6.14.12-4.fc23 has been submitted as an update for Fedora 23.

Comment 2 Fedora Update System 2015-08-10 18:37:11 UTC
libpgf-6.14.12-4.el7 has been submitted as an update for Fedora EPEL 7.

Comment 3 Fedora Update System 2015-08-11 06:17:38 UTC
Package libpgf-6.14.12-4.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing libpgf-6.14.12-4.el7'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-08-19 07:55:01 UTC
libpgf-6.14.12-4.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Adam Mariš 2015-08-26 09:01:28 UTC
CVE assignment:


Comment 6 Fedora Update System 2015-08-26 22:25:13 UTC
libpgf-6.14.12-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.