Bug 1568520 (CVE-2018-2826) - CVE-2018-2826 OpenJDK: incorrect type check for the MethodHandles' tryFinally cleanup exception type (Libraries, 8194238)
Summary: CVE-2018-2826 OpenJDK: incorrect type check for the MethodHandles' tryFinally...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-2826
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1559778
TreeView+ depends on / blocked
 
Reported: 2018-04-17 16:47 UTC by Tomas Hoger
Modified: 2019-09-29 14:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-04-17 20:27:21 UTC
Embargoed:


Attachments (Terms of Use)

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


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