Bug 1531724 (CVE-2018-4868)

Summary: CVE-2018-4868 exiv2: Excessive memory allocation in Exiv2::Jp2Image::readMetadata function in jp2image.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jgrulich, michel, rdieter, rschiron
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: exiv 0.27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:31:50 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: 1531729, 1701506, 1701507    
Bug Blocks: 1696279    

Description Laura Pardo 2018-01-05 21:42:57 UTC
The Exiv2::Jp2Image::readMetadata function in jp2image.cpp in Exiv2 0.26 allows remote attackers to cause a denial of service (excessive memory allocation) via a crafted file.

Upstream Issue:
https://github.com/Exiv2/exiv2/issues/202

Comment 1 Laura Pardo 2018-01-05 21:43:28 UTC
Created exiv2 tracking bugs for this issue:

Affects: fedora-all [bug 1531729]

Comment 2 Riccardo Schirone 2019-04-19 09:49:53 UTC
Upstream patch:
https://github.com/Exiv2/exiv2/commit/9cddfa514d4fddf7a5f93be74dae2e93d9722204

Comment 3 Riccardo Schirone 2019-04-19 10:00:54 UTC
A big allocation, caused by not enough checks, is present in Jp2Image::redMetadata() when the box type is Jp2Header and the subBox is ColorHeader.

Comment 6 errata-xmlrpc 2020-04-28 15:26:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1577 https://access.redhat.com/errata/RHSA-2020:1577

Comment 7 Product Security DevOps Team 2020-04-28 16:31:50 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-2018-4868