Bug 1568520 (CVE-2018-2826)

Summary: CVE-2018-2826 OpenJDK: incorrect type check for the MethodHandles' tryFinally cleanup exception type (Libraries, 8194238)
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: dbhole, jvanek, security-response-team
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: 2018-04-17 20:27:21 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:    
Bug Blocks: 1559778    

Description Tomas Hoger 2018-04-17 16:47:16 UTC
It was discovered that the Libraries component of OpenJDK failed to correctly check type of the exception passed to the cleanup handle when using MethodHandles' tryFinally() method.  An untrusted Java application or applet could use this flaw to bypass Java sandbox restrictions.

Comment 1 Tomas Hoger 2018-04-17 20:27:21 UTC
Affected functionality - MethodHandles' tryFinally() method - was only introduced in OpenJDK 9.

Comment 2 Tomas Hoger 2018-04-17 21:01:47 UTC
Public now via Oracle CPU April 2018:

http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html#AppendixJAVA

The issue was fixed in Oracle JDK 10.0.1.

Comment 3 Tomas Hoger 2018-04-20 20:49:56 UTC
OpenJDK 10 upstream commit:

http://hg.openjdk.java.net/jdk-updates/jdk10u/rev/c78afd5995fb