Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1422906 - (CVE-2017-6009) CVE-2017-6009 icoutils: Buffer overflow in the decode_ne_resource_id function
CVE-2017-6009 icoutils: Buffer overflow in the decode_ne_resource_id function
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20170203,repo...
: Security
Depends On: 1430609 1422911 1430610 1430611
Blocks: 1411254
  Show dependency treegraph
 
Reported: 2017-02-16 09:19 EST by Andrej Nemec
Modified: 2017-03-22 21:15 EDT (History)
3 users (show)

See Also:
Fixed In Version: icoutils 0.31.2
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 memory corruption leading to a crash or potential code execution.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Reporter writeup (6.66 KB, text/plain)
2017-02-16 09:20 EST, Andrej Nemec
no flags Details
fixes memory issue triggered by wrong type cast (453 bytes, patch)
2017-02-22 05:24 EST, Martin Gieseking
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0837 normal SHIPPED_LIVE Important: icoutils security update 2017-03-23 01:04:55 EDT

  None (edit)
Description Andrej Nemec 2017-02-16 09:19:31 EST
An issue was discovered in icoutils. A buffer overflow was observed in the "decode_ne_resource_id" function in the "restable.c" source file. This is happening because the "len" parameter for memcpy is not checked for size and thus becomes a negative integer in the process, resulting in a failed memcpy. This affects wrestool.
Comment 1 Andrej Nemec 2017-02-16 09:20 EST
Created attachment 1250877 [details]
Reporter writeup
Comment 2 Andrej Nemec 2017-02-16 09:26:47 EST
Created icoutils tracking bugs for this issue:

Affects: fedora-all [bug 1422911]
Comment 3 Martin Gieseking 2017-02-22 05:24 EST
Created attachment 1256407 [details]
fixes memory issue triggered by wrong type cast

This patch should fix the issue.
Comment 4 Salvatore Bonaccorso 2017-02-26 15:28:03 EST
Hi Martin

Has this been forwarded to upstream?

Regards,
Salvatore
Comment 5 Martin Gieseking 2017-02-26 15:34:07 EST
Hi Salvatore, yes, I sent the patches to upstream but haven't received a reply yet.
Comment 8 Doran Moppert 2017-03-09 01:17:05 EST
Created icoutils tracking bugs for this issue:

Affects: epel-6 [bug 1430609]
Comment 10 errata-xmlrpc 2017-03-22 21:15:01 EDT
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

Note You need to log in before you can comment on or make changes to this bug.