Bug 1663878 (CVE-2018-20030)

Summary: CVE-2018-20030 libexif: Input validation issue resulting in a denial of service
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rhughes, yselkowi
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:22:18 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: 1663879, 1673461, 1673462    
Bug Blocks: 1663880    

Description Andrej Nemec 2019-01-07 09:27:19 UTC
It was found that specially crafted XIF_IFD_INTEROPERABILITY and EXIF_IFD_EXIF tags could be used for a denial of service.

References:

https://seclists.org/bugtraq/2018/Dec/31

Comment 1 Andrej Nemec 2019-01-07 09:27:27 UTC
Created libexif tracking bugs for this issue:

Affects: fedora-all [bug 1663879]

Comment 2 Riccardo Schirone 2019-02-07 11:43:26 UTC
Upstream patch:
https://github.com/libexif/libexif/commit/6aa11df549114ebda520dde4cdaea2f9357b2c89

Comment 4 Riccardo Schirone 2019-02-07 14:53:11 UTC
External References:

https://seclists.org/bugtraq/2018/Dec/31

Comment 5 Riccardo Schirone 2019-02-07 15:00:40 UTC
Function exif_data_load_data_content() in exif-data.c recursively calls itself when EXIF_TAG_EXIF_IFD_POINTER, EXIF_TAG_INTEROPERABILITY_IFD_POINTER or EXIF_TAG_GPS_INFO_IFD_POINTER tags are found. A specially crafted file may abuse this recursion by making the program waste a lot of time on it.