openjdk-7-jre-headless: CVE-2015-0383: insecure use of /tmp/hsperfdata_*

Related Vulnerabilities: CVE-2015-0383  

Debian Bug report logs - #761683
openjdk-7-jre-headless: CVE-2015-0383: insecure use of /tmp/hsperfdata_*

version graph

Reported by: Jakub Wilk <jwilk@debian.org>

Date: Mon, 15 Sep 2014 18:45:01 UTC

Severity: important

Tags: fixed-upstream, security, upstream

Found in version openjdk-7/7u65-2.5.2-3

Fixed in versions openjdk-7/7u75-2.5.4-1, 7u95-2.6.4-1+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jwilk@debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#761683; Package openjdk-7-jre-headless. (Mon, 15 Sep 2014 18:45:06 GMT) (full text, mbox, link).


Message #3 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jakub Wilk <jwilk@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: openjdk-7-jre-headless: insecure use of /tmp/hsperfdata_*
Date: Mon, 15 Sep 2014 20:42:59 +0200
Package: openjdk-7-jre-headless
Version: 7u65-2.5.2-3
Severity: important
Tags: security

java tries to mkdir /tmp/hsperfdata_$USER/. But if the directory already 
exists, it will use the existing one, even when it's owned my another 
(potentially malicious) user:

# whoami
root

# ls -ld /tmp/hsperfdata_root/
drwxr-xr-x 2 mallory mallory 4096 Sep 15 20:17 /tmp/hsperfdata_root/

# strace -o '| grep hsperfdata' -f java 2>/dev/null
1047  openat(AT_FDCWD, "/tmp/hsperfdata_root", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
1047  lstat("/tmp/hsperfdata_root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1047  mkdir("/tmp/hsperfdata_root", 0755) = -1 EEXIST (File exists)
1047  lstat("/tmp/hsperfdata_root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1047  open("/tmp/hsperfdata_root/1045", O_RDWR|O_CREAT|O_TRUNC, 0600) = 3
1047  unlink("/tmp/hsperfdata_root/1045") = 0


-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages openjdk-7-jre-headless depends on:
ii  ca-certificates-java  20140324
ii  java-common           0.52
ii  libc6                 2.19-11
ii  libcups2              1.7.5-1
ii  libfontconfig1        2.11.0-6.1
ii  libfreetype6          2.5.2-1.1
ii  libgcc1               1:4.9.1-14
ii  libglib2.0-0          2.40.0-5
ii  libjpeg8              8d1-1
ii  libkrb5-3             1.12.1+dfsg-9
ii  liblcms2-2            2.6-3
ii  libnss3               2:3.17-1
ii  libpcsclite1          1.8.11-3
ii  libstdc++6            4.9.1-14
ii  multiarch-support     2.19-11
ii  tzdata-java           2014g-1
ii  zlib1g                1:1.2.8.dfsg-2

-- 
Jakub Wilk



Changed Bug title to 'openjdk-7-jre-headless: CVE-2015-0383: insecure use of /tmp/hsperfdata_*' from 'openjdk-7-jre-headless: insecure use of /tmp/hsperfdata_*' Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Tue, 21 Apr 2015 13:36:10 GMT) (full text, mbox, link).


Added tag(s) upstream and fixed-upstream. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Tue, 21 Apr 2015 13:36:11 GMT) (full text, mbox, link).


Marked as fixed in versions openjdk-7/7u75-2.5.4-1. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Tue, 21 Apr 2015 13:36:11 GMT) (full text, mbox, link).


Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Fri, 15 Apr 2016 19:40:37 GMT) (full text, mbox, link).


Notification sent to Jakub Wilk <jwilk@debian.org>:
Bug acknowledged by developer. (Fri, 15 Apr 2016 19:40:37 GMT) (full text, mbox, link).


Message #14 received at 761683-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 637250-done@bugs.debian.org,643755-done@bugs.debian.org,661465-done@bugs.debian.org,672279-done@bugs.debian.org,686073-done@bugs.debian.org,690260-done@bugs.debian.org,697658-done@bugs.debian.org,704578-done@bugs.debian.org,705787-done@bugs.debian.org,706200-done@bugs.debian.org,706326-done@bugs.debian.org,711005-done@bugs.debian.org,711180-done@bugs.debian.org,717047-done@bugs.debian.org,717963-done@bugs.debian.org,721063-done@bugs.debian.org,726781-done@bugs.debian.org,726790-done@bugs.debian.org,729513-done@bugs.debian.org,737254-done@bugs.debian.org,742831-done@bugs.debian.org,743481-done@bugs.debian.org,745939-done@bugs.debian.org,750400-done@bugs.debian.org,751290-done@bugs.debian.org,757049-done@bugs.debian.org,761683-done@bugs.debian.org,765484-done@bugs.debian.org,765508-done@bugs.debian.org,766704-done@bugs.debian.org,774873-done@bugs.debian.org,774953-done@bugs.debian.org,775741-done@bugs.debian.org,775976-done@bugs.debian.org,776946-done@bugs.debian.org,777552-done@bugs.debian.org,780665-done@bugs.debian.org,784389-done@bugs.debian.org,785283-done@bugs.debian.org,785452-done@bugs.debian.org,785792-done@bugs.debian.org,788195-done@bugs.debian.org,798214-done@bugs.debian.org,798855-done@bugs.debian.org,799587-done@bugs.debian.org,803235-done@bugs.debian.org,808453-done@bugs.debian.org,813221-done@bugs.debian.org,813790-done@bugs.debian.org,814608-done@bugs.debian.org,820294-done@bugs.debian.org,
Cc: openjdk-7@packages.debian.org, openjdk-7@packages.qa.debian.org
Subject: Bug#820703: Removed package(s) from unstable
Date: Fri, 15 Apr 2016 19:38:07 +0000
Version: 7u95-2.6.4-1+rm

Dear submitter,

as the package openjdk-7 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/820703

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 14 May 2016 07:52:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jun 19 17:47:24 2019; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.