Bug 1328747 (CVE-2015-8863)

Summary: CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function
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: abaron, aortega, apevec, ayoung, carnil, chrisw, dallan, fpercoco, gkotton, jhrozek, jschluet, lhh, lpeer, markmc, rbryant, rhos-maint, sardella, sclewis, slong, spoore, tdecacqu
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: jq 1.6 Doc Type: Bug Fix
Doc Text:
A heap-based buffer overflow flaw was found in jq's tokenadd() function. By tricking a victim into processing a specially crafted JSON file, an attacker could use this flaw to crash jq or, potentially, execute arbitrary code on the victim's system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-11 01:15:07 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: 1416711, 1328748, 1328749, 1328750, 1331202, 1331203, 1331204, 1331209    
Bug Blocks: 1328751    

Description Andrej Nemec 2016-04-20 08:36:02 UTC
A vulnerability was found in jq. There was an off-by one error, as the NUL terminator byte was not allocated on resize. A maliciously crafted JSON file could cause the application to crash.

External references:

https://github.com/stedolan/jq/issues/995

Upstream fix:

https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd

References(reproducer available):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231

Comment 1 Andrej Nemec 2016-04-20 08:36:48 UTC
Created jq tracking bugs for this issue:

Affects: fedora-all [bug 1328748]
Affects: epel-6 [bug 1328749]
Affects: epel-7 [bug 1328750]

Comment 8 errata-xmlrpc 2016-05-23 23:41:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7

Via RHSA-2016:1099 https://rhn.redhat.com/errata/RHSA-2016-1099.html

Comment 9 errata-xmlrpc 2016-05-23 23:41:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7

Via RHSA-2016:1098 https://rhn.redhat.com/errata/RHSA-2016-1098.html

Comment 10 errata-xmlrpc 2016-05-25 06:18:37 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 8.0 (Liberty)

Via RHSA-2016:1106 https://rhn.redhat.com/errata/RHSA-2016-1106.html