Bug 1728481 (CVE-2019-13108)

Summary: CVE-2019-13108 exiv2: integer overflow PngImage::readMetadata leads to denial of service
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jgrulich, michel, rdieter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: exiv2 0.27.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-16 14:40:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1728482    
Bug Blocks: 1728496    

Description Dhananjay Arunesh 2019-07-10 04:53:27 UTC
An integer overflow in Exiv2 through 0.27.1 allows an attacker to cause a denial of service (SIGSEGV) via a crafted PNG image file, because PngImage::readMetadata mishandles a zero value for iccOffset.

Reference:
https://github.com/Exiv2/exiv2/issues/789
https://github.com/Exiv2/exiv2/pull/794

Comment 1 Dhananjay Arunesh 2019-07-10 04:53:39 UTC
Created exiv2 tracking bugs for this issue:

Affects: fedora-all [bug 1728482]

Comment 2 Riccardo Schirone 2019-07-16 13:39:28 UTC
Upstream patch:
https://github.com/Exiv2/exiv2/commit/8cd95e221889e41e9cc153e2cfb5a7b41c7bc7a4

Comment 3 Riccardo Schirone 2019-07-16 13:47:58 UTC
Statement:

This issue did not affect the versions of exiv2 as shipped with Red Hat Enterprise Linux 6, 7, and 8 as they did not include the vulnerable code.

Comment 4 Product Security DevOps Team 2019-07-16 14:40:43 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-13108

Comment 5 Riccardo Schirone 2019-08-19 15:26:13 UTC
The commits that introduce the vulnerable code are:
https://github.com/Exiv2/exiv2/commit/88f22e13cb1917ac94a95f95f74c9ee93c5472c8 (for the 0.27 version, introduced in 0.27.1)
https://github.com/Exiv2/exiv2/commit/9a38066b8eddf3948696a3362aac29e012ebe690 (on master)

Comment 6 Riccardo Schirone 2019-08-19 15:26:52 UTC
Red Hat Enterprise Linux 7.7 ships exiv2 0.27.0, thus it is not vulnerable to this flaw.