CVE-2015-0383: Medium severity Canonical Ubuntu Linux vulnerability

Published Jul 28, 2014
·
Updated

Multiple flaws were discovered in the way the Hotspot Java Virtual Machine, that is part of OpenJDK and Oracle Java SE, handled performance data temporary files. On Linux systems, these files are created in /tmp/hsperfdata<user> directories. However, the code did not properly check permissions and ownership of existing directories, making it possible for local attackers, able to create /tmp/hsperfdatavictim directory before victim user creates it, to remove or overwrite arbitrary files with the permissions of the victim user.

There already exists the function isdirectorysecure() that is used to check if existing /tmp/hsperfdata<user> directory is safe to use. It ensures it really is directory and that it isn't group or world writable. However, no ownership check is performed.

http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/file/f8795cb3f5c1/src/os/linux/vm/perfMemorylinux.cpp#l200

The missing ownership check, combined with a race to replace an attacker-owned hsperfdata directory with a symlink, can be used to remove arbitrary files in cleanupsharedmemresources() (which is called from mmapcreateshared()).

http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/file/f8795cb3f5c1/src/os/linux/vm/perfMemorylinux.cpp#l488

Arbitrary file overwrite is possible via createsharedmemresources() via a symlink in an attacker-owned hsperdatavictim directory.

http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/file/f8795cb3f5c1/src/os/linux/vm/perfMemorylinux.cpp#l601

This issue is partially mitigated by the fact that attacker needs to create /tmp/hsperdatavictim directory before victim user first runs JVM, as the hsperfdata directory is not removed on JVM exit, only JVM id / pid file is removed. On systems that use tmpfs for /tmp, or use other ways to clean up /tmp directory on every reboot, this mitigation is likely to have very limited impact.

Another way to mitigate this issue is to run java with -XX:-UsePerfData option, which disables the performance monitoring feature and prevents creation of hsperfdata directory and files. This prevents tools as jstat (JVM statistics monitoring tool) from being able to get performance data.

Other sources

Unspecified vulnerability in Oracle Java SE 5.0u75, 6u85, 7u72, and 8u25; Java SE Embedded 7u71 and 8u6; and JRockit R27.8.4 and R28.3.4 allows local users to affect integrity and availability via unknown vectors related to Hotspot.

— MITRE

Affected Software

32 affected componentsFixes available
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Fedoraproject Fedora=20
Fedoraproject Fedora=21
Fedoraproject Fedora=22
Novell Suse Linux Enterprise Desktop=11.0-sp3
Novell Suse Linux Enterprise Server=12.0
openSUSE openSUSE=13.2
redhat Enterprise Linux=5
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
Oracle JDK=1.5.0-update75
Oracle JDK=1.6.0-update85
Oracle JDK=1.7.0-update71
Oracle JDK=1.7.0-update72
Oracle JDK=1.8.0-update25
Oracle JDK=1.8.0-update6
Oracle JRE=1.5.0-update75
Oracle JRE=1.6.0-update85
Oracle JRE=1.7.0-update71
Oracle JRE=1.7.0-update72
Oracle JRE=1.8.0-update25
Oracle JRE=1.8.0-update6
Oracle Jrockit=r27.8.4
Oracle Jrockit=r28.3.4
debian/openjdk-8
8u40~b22-1
debian/openjdk-6
6b34-1.13.6-1~deb6u16b34-1.13.6-1~deb7u16b34-1.13.6-1
debian/openjdk-7
7u75-2.5.4-1~deb7u17u75-2.5.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openjdk-8 to a version that resolves this vulnerability.

    Fixed in 8u40~b22-1
  2. Upgrade

    Upgrade debian/openjdk-6 to a version that resolves this vulnerability.

    Fixed in 6b34-1.13.6-1~deb6u1Fixed in 6b34-1.13.6-1~deb7u1Fixed in 6b34-1.13.6-1
  3. Upgrade

    Upgrade debian/openjdk-7 to a version that resolves this vulnerability.

    Fixed in 7u75-2.5.4-1~deb7u1Fixed in 7u75-2.5.4-1
  4. Configuration

    Run Java with -XX:-UsePerfData to disable performance monitoring and prevent creation of hsperfdata directories and files.

    Java HotSpot JVM -XX:-UsePerfData = disabled

Event History

Jul 28, 2014
Data Sourced
via Red Hat·01:48 PM
DescriptionSeverityAffected Software
Jan 21, 2015
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
06:59 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2015-0383?

The severity of CVE-2015-0383 is not explicitly defined, but it can impact the integrity and availability of systems using affected Java versions.

2

How do I fix CVE-2015-0383?

To fix CVE-2015-0383, update your Java installation to the latest version recommended by Oracle or apply the latest available patches for your specific software environment.

3

Which software is affected by CVE-2015-0383?

CVE-2015-0383 affects multiple versions of Oracle Java SE, JRockit, and various Linux distributions including Ubuntu and Red Hat.

4

Can CVE-2015-0383 be exploited remotely?

CVE-2015-0383 is primarily a local vulnerability, meaning it requires local access to the system to be exploited.

5

What types of vectors are involved in CVE-2015-0383?

The specific vectors for CVE-2015-0383 are unspecified, but they are related to the Java Hotspot component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203