Bug 1412263 (CVE-2017-5332)

Summary: CVE-2017-5332 icoutils: Access to unallocated memory possible in extract.c
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dmoppert, martin.gieseking, rjones
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: icoutils 0.31.1 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in icoutils, in the wrestool program. An attacker could create a crafted executable that, when read by wrestool, could result in failure to allocate memory or an over-large memcpy operation, leading to a crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:05:24 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: 1412265, 1412266, 1430610, 1430611    
Bug Blocks: 1411254    

Description Andrej Nemec 2017-01-11 16:08:23 UTC
A vulnerability was found in icoutils in extract.c. It is possible to access unallocated memory via wrestool while parsing maliciously crafted file which would make the application crash or possibly allow code execution.

References:

http://seclists.org/oss-sec/2017/q1/56

Upstream patch:

http://git.savannah.gnu.org/cgit/icoutils.git/commit/?id=1aa9f28f7bcbdfff6a84a15ac8d9a87559b1596a

Comment 1 Andrej Nemec 2017-01-11 16:11:02 UTC
Created icoutils tracking bugs for this issue:

Affects: fedora-all [bug 1412265]
Affects: epel-6 [bug 1412266]

Comment 2 Doran Moppert 2017-03-09 05:36:57 UTC
This is the essentially the same as CVE-2017-5333 (bug 1412259), but only considers the OOB read aspect.

Comment 5 errata-xmlrpc 2017-03-23 01:14:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0837 https://rhn.redhat.com/errata/RHSA-2017-0837.html