Bug 1739393 (CVE-2019-5058)

Summary: CVE-2019-5058 SDL2_image: exploitable code execution vulnerability in image rendering leads to a heap overflow
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: erik-fedora, igor.raits, klember, maci, walter.pete
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: 2019-08-09 13:18:22 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: 1739394, 1739395, 1739396, 1739397    
Bug Blocks:    

Description Marian Rehak 2019-08-09 08:48:43 UTC
An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, allocating too small of a buffer. This buffer can then be written out of bounds resulting in a heap overflow, ultimately ending in code execution. An attacker can display a specially crafted image to trigger this vulnerability.

External References:

https://talosintelligence.com/vulnerability_reports/TALOS-2019-0843

Comment 1 Marian Rehak 2019-08-09 08:49:05 UTC
Created SDL2_image tracking bugs for this issue:

Affects: epel-7 [bug 1739394]
Affects: fedora-all [bug 1739396]


Created mingw-SDL2_image tracking bugs for this issue:

Affects: epel-all [bug 1739395]
Affects: fedora-all [bug 1739397]

Comment 2 Product Security DevOps Team 2019-08-09 13:18:22 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.