A flaw was found in the way the JSSE component in OpenJDK performed X.509 certificate identify verification when establishing TLS/SSL connection to a host identified using IP address. In certain cases, it would incorrectly use a host name obtained after performing reverse DNS lookup of the specified IP address rather than the original IP address for the identity check, possibly leading to having a certificate issued for different identity to be accepted as valid. This issue is know to affect cases when SSLSocketFactory.createSocket() is called with certain InetAddress instances. It is not known to affect cases when target host IP is passed to createSocket() as string, or when IP is used in URL used for HttpsURLConnection. With this patch, reverse DNS lookup is no longer performed. The fix also adds new system property jdk.tls.trustNameService that can be used to allow the DNS lookup to be performed and hence have its result used during identity check.
Public now via Oracle Critical Patch Update - July 2015. Fixed in Oracle Java SE 6u101, 7u85, and 8u51. External References: http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html#AppendixJAVA
This change is also documented in Oracle JDK release notes: Area: security-libs/javax.net.ssl Synopsis: Improved certification checking With this fix, JSSE endpoint identification does not perform reverse name lookup for IP addresses by default in JDK. If an application does need to perform reverse name lookup for raw IP addresses in SSL/TLS connections, and encounter endpoint identification compatibility issue, System property "jdk.tls.trustNameService" can be used to switch on reverse name lookup. Note that if the name service is not trustworthy, enabling reverse name lookup may be susceptible to MITM attacks. See JDK-8067695 (not public). http://www.oracle.com/technetwork/java/javase/8u51-relnotes-2587590.html http://www.oracle.com/technetwork/java/javase/7u85-relnotes-2587591.html http://www.oracle.com/technetwork/java/javase/documentation/overview-156328.html
This issue has been addressed in the following products: Red Hat Enterprise Linux 5 Via RHSA-2015:1230 https://rhn.redhat.com/errata/RHSA-2015-1230.html
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Red Hat Enterprise Linux 6 Via RHSA-2015:1229 https://rhn.redhat.com/errata/RHSA-2015-1229.html
This issue has been addressed in the following products: Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 Via RHSA-2015:1228 https://rhn.redhat.com/errata/RHSA-2015-1228.html
OpenJDK 8 upstream commit: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/a25640f4e518
Original public report: <http://mail.openjdk.java.net/pipermail/security-dev/2014-November/011377.html>
This issue has been addressed in the following products: Oracle Java for Red Hat Enterprise Linux 5 Oracle Java for Red Hat Enterprise Linux 7 Oracle Java for Red Hat Enterprise Linux 6 Via RHSA-2015:1243 https://rhn.redhat.com/errata/RHSA-2015-1243.html
This issue has been addressed in the following products: Oracle Java for Red Hat Enterprise Linux 6 Oracle Java for Red Hat Enterprise Linux 7 Oracle Java for Red Hat Enterprise Linux 5 Via RHSA-2015:1242 https://rhn.redhat.com/errata/RHSA-2015-1242.html
This issue has been addressed in the following products: Oracle Java for Red Hat Enterprise Linux 6 Oracle Java for Red Hat Enterprise Linux 7 Via RHSA-2015:1241 https://rhn.redhat.com/errata/RHSA-2015-1241.html
This issue has been addressed in the following products: Supplementary for Red Hat Enterprise Linux 5 Supplementary for Red Hat Enterprise Linux 6 Via RHSA-2015:1486 https://rhn.redhat.com/errata/RHSA-2015-1486.html
This issue has been addressed in the following products: Supplementary for Red Hat Enterprise Linux 7 Supplementary for Red Hat Enterprise Linux 6 Via RHSA-2015:1485 https://rhn.redhat.com/errata/RHSA-2015-1485.html
This issue has been addressed in the following products: Supplementary for Red Hat Enterprise Linux 5 Via RHSA-2015:1488 https://rhn.redhat.com/errata/RHSA-2015-1488.html
This issue has been addressed in the following products: Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 Via RHSA-2015:1526 https://rhn.redhat.com/errata/RHSA-2015-1526.html
This issue has been addressed in the following products: Red Hat Satellite Server v 5.7 Red Hat Satellite Server v 5.6 Via RHSA-2015:1604 https://rhn.redhat.com/errata/RHSA-2015-1604.html
This patch causes Bug 1251935 and will be fixed in later versions.