Bug 1332200 (CVE-2016-4425)

Summary: CVE-2016-4425 jansson: stack exhaustion parsing a JSON file
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carnil, dmoppert, jiri, jsmith.fedora, rkhan, vanmeeuwen+fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 06:16:51 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: 1332201, 1332202    
Bug Blocks: 1332205    
Attachments:
Description Flags
reproduction script + client program none

Description Andrej Nemec 2016-05-02 13:30:18 UTC
A vulnerability was found in jansson. Parsing a maliciously crafted JSON file could cause the application to crash. This crash is caused by stack exhaustion.

CVE request:

http://seclists.org/oss-sec/2016/q2/181

Upstream bug:

https://github.com/akheron/jansson/issues/282

Upstream patch:

https://github.com/akheron/jansson/pull/284

Comment 1 Andrej Nemec 2016-05-02 13:33:36 UTC
Created jansson tracking bugs for this issue:

Affects: fedora-all [bug 1332201]
Affects: epel-6 [bug 1332202]

Comment 2 Andrej Nemec 2016-05-03 14:11:16 UTC
Upstream fix:

https://github.com/akheron/jansson/pull/284

Comment 3 Doran Moppert 2016-05-12 06:10:52 UTC
Created attachment 1156436 [details]
reproduction script + client program

Added repro derived from upstream bug.

Comment 4 Doran Moppert 2016-05-12 06:16:51 UTC
RHEL-7 package version 2.4/6el7 confirmed vulnerable by inspecting the source and reproducing the segfault.

The effect is stack overrun: while it segfaults there's no opportunity to exploit it for C/I compromise.  Moderate impact due to affecting availability.

Patch is easy to apply but impact is very low - closing with WONTFIX.