Bug 1390266 (CVE-2016-7504, CVE-2016-7505, CVE-2016-7506, CVE-2016-9017, CVE-2016-9108, CVE-2016-9109)

Summary: CVE-2016-7504 CVE-2016-7505 CVE-2016-7506 CVE-2016-9017 CVE-2016-9108 CVE-2016-9109 mujs: Multiple security issues
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: psabata
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: 2017-01-13 09:43: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: 1390268    
Bug Blocks:    

Description Andrej Nemec 2016-10-31 15:16:57 UTC
Mujs received multiple CVEs for security issues.

CVE-2016-9108: Integer overflow and crash parsing regex in mujs

http://seclists.org/oss-sec/2016/q4/275

CVE-2016-9109: Incomplete fix for CVE-2016-7563

http://seclists.org/oss-sec/2016/q4/276

CVE-2016-7506: OOB read vulnerability in Sp_replace_regexp function

http://bugs.ghostscript.com/show_bug.cgi?id=697141

CVE-2016-7505: Buffer overflow in divby function

http://bugs.ghostscript.com/show_bug.cgi?id=697140

CVE-2016-7504: Use-after-free in Rp_toString function

http://bugs.ghostscript.com/show_bug.cgi?id=697142

CVE-2016-9017: OOB read in jsC_dumpfunction function

http://bugs.ghostscript.com/show_bug.cgi?id=697171

Comment 1 Andrej Nemec 2016-10-31 15:18:14 UTC
Created mujs tracking bugs for this issue:

Affects: fedora-all [bug 1390268]

Comment 2 Petr Šabata 2016-11-16 11:37:16 UTC
(In reply to Andrej Nemec from comment #0)
> CVE-2016-7506: OOB read vulnerability in Sp_replace_regexp function
> 
> http://bugs.ghostscript.com/show_bug.cgi?id=697141

This is already fixed in Fedora, included in mujs-0-5.20160921git5c337af.fc23.

> CVE-2016-7505: Buffer overflow in divby function
> 
> http://bugs.ghostscript.com/show_bug.cgi?id=697140

So is this.

> CVE-2016-7504: Use-after-free in Rp_toString function
> 
> http://bugs.ghostscript.com/show_bug.cgi?id=697142

And this too.

Comment 3 Petr Šabata 2016-11-16 11:50:34 UTC
(In reply to Andrej Nemec from comment #0)
> Mujs received multiple CVEs for security issues.
> 
> CVE-2016-9108: Integer overflow and crash parsing regex in mujs
> 
> http://seclists.org/oss-sec/2016/q4/275

Should be fixed in b6de34ac6d8bb7dd5461c57940acfbd3ee7fd93e.

> CVE-2016-9109: Incomplete fix for CVE-2016-7563
> 
> http://seclists.org/oss-sec/2016/q4/276

Fixed in a0ceaf5050faf419401fe1b83acfa950ec8a8a89.
 
> CVE-2016-9017: OOB read in jsC_dumpfunction function
> 
> http://bugs.ghostscript.com/show_bug.cgi?id=697171

Also fixed in a5c747f1d40e8d6659a37a8d25f13fb5acf8e767.


I will include these fixes in a rebase.