Bug 1545232 (CVE-2017-17725)

Summary: CVE-2017-17725 exiv2: heap-based buffer over-read in Exiv2::getULong function in types.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jgrulich, mcepl, michel, rdieter, rschiron
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An integer wraparound, leading to heap-based out-of-bound read, was found in the way Exiv2 library reads ICC profiles embedded in a JP2 image. By persuading a victim to open a crafted JP2 image, a remote attacker could crash the application or possibly retrieve a portion of memory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-14 09:18:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1545233, 1547130, 1547207    
Bug Blocks: 1545252    

Description Laura Pardo 2018-02-14 12:48:25 UTC
A flaw was found in Exiv2 0.26. There is an integer wraparound leading to a heap-based buffer over-read in the Exiv2::getULong function in types.cpp, called while parsing an ICC profile. Remote attackers can exploit the vulnerability to cause a denial of service via a crafted JP2 image file.



Comment 1 Laura Pardo 2018-02-14 12:48:56 UTC
Created exiv2 tracking bugs for this issue:

Affects: fedora-all [bug 1545233]

Comment 2 Riccardo Schirone 2018-02-20 09:49:23 UTC
It is important to note that without AddressSanitizer enabled, the out of bound read in Exiv2::getULong does not have impact, since it is at most 4 bytes, however another out of bound read in Jp2Image::readMetadata function is triggered by the same public POC, which could crash the program or leak data.

Comment 5 Riccardo Schirone 2018-02-20 16:26:23 UTC

This issue did not affect the versions of Exiv2 as shipped with Red Hat Enterprise Linux 6 and 7 as they did not include support for ICC profiles.

Comment 8 Riccardo Schirone 2018-02-22 09:13:38 UTC
Introduced by: