Bug 1990330 (CVE-2021-31292)

Summary: CVE-2021-31292 exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jgrulich, manisandro, michel, rdieter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: exiv2 0.27.4 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in exiv2. A integer wraparound in the CrwMap:encode0x1810 function leads to memcpy call with a very large size allowing an attacker, who can provide a malicious image, to crash an application which uses the exiv2 library. The highest threat from this vulnerability is to service availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 01:22:49 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: 1989860, 1990331, 1990332, 1990385, 1990399    
Bug Blocks: 1990333    

Description Marian Rehak 2021-08-05 08:32:22 UTC
An integer overflow in CrwMap::encode0x1810 of Exiv2 0.27.3 allows attackers to trigger a heap-based buffer overflow and cause a denial of service (DOS) via crafted metadata.

Upstream Issue:

https://github.com/Exiv2/exiv2/issues/1530

Comment 1 Marian Rehak 2021-08-05 08:32:40 UTC
Created exiv2 tracking bugs for this issue:

Affects: fedora-all [bug 1990331]


Created mingw-exiv2 tracking bugs for this issue:

Affects: fedora-all [bug 1990332]

Comment 2 Riccardo Schirone 2021-08-05 10:14:45 UTC
Upstream patch:
https://github.com/Exiv2/exiv2/commit/9b7a19f957af53304655ed1efe32253a1b11a8d0

Comment 6 errata-xmlrpc 2021-11-09 17:34:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4173 https://access.redhat.com/errata/RHSA-2021:4173

Comment 7 errata-xmlrpc 2021-11-09 18:13:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4319 https://access.redhat.com/errata/RHSA-2021:4319

Comment 8 Product Security DevOps Team 2021-11-10 01:22:47 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-2021-31292