Received: from eggs.gnu.org ([2001:4830:134:3::10]:50644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtXj3-0003QU-Ef for qemu-devel@nongnu.org; Sat, 16 May 2015 04:45:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtXj0-0001iP-7m for qemu-devel@nongnu.org; Sat, 16 May 2015 04:45:41 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:59856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtXiz-0001fJ-RT for qemu-devel@nongnu.org; Sat, 16 May 2015 04:45:38 -0400 Message-ID: <555703A7.3090600@msgid.tls.msk.ru> Date: Sat, 16 May 2015 11:45:27 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <55537A9D.70306@redhat.com> In-Reply-To: <55537A9D.70306@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [oss-security] QEMU 2.3.0 tmp vulns CVE request List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: oss-security@lists.openwall.com Cc: qemu-devel [Adding Cc qemu-devel@] 13.05.2015 19:23, Kurt Seifried wrote: > So some suspicious looking tmp usage in qemu (I excluded the test > scripts and builds scripts, they were rife with problems so hopefully > people only build in trusted environments). > > Additionally there will no doubt be further QEMU issues found in the > next few days/weeks as people start looking, I would ask that this be > handled publicly unless it's Remote Code Exec or equivalent (e.g. > CVE-2015-3456). > > > > ==================================================================== > http://wiki.qemu-project.org/download/qemu-2.3.0.tar.bz2 > > ==================================================================== > ./roms/u-boot/tools/patman/series.py: > ./roms/u-boot/lib/lzma/import_lzmasdk.sh This is part of u-boot source maintained externally but included in qemu sources tarball. It is not used directly even for building qemu, used only by relevant maintainers when they update files in pc-bios/ which are produced from this set of sources. If the bug is to be assigned, it should be filed against u-boot not qemu. > ==================================================================== > ./roms/ipxe/src/util/niclist.pl: The same thing, it is ipxe source, not used by qemu in any way. > ==================================================================== > > ./net/slirp.c: > snprintf(s->smb_dir, sizeof(s->smb_dir), "/tmp/qemu-smb.%ld-%d", > (long)getpid(), instance++); This one is real, used for -smb argument, to start smbd, making its configuration. Maybe tmpnam() should be used here. > ==================================================================== > ./tcg/tcg.c: > #ifdef DEBUG_JIT > /* Enable this block to be able to debug the ELF image file creation. > One can use readelf, objdump, or other inspection utilities. */ > { > FILE *f = fopen("/tmp/qemu.jit", "w+b"); > if (f) { > if (fwrite(img, img_size, 1, f) != img_size) { > /* Avoid stupid unused return value warning for fwrite. */ > } > fclose(f); > } > } > #endif This is solely for debugging by JIT maintainers. Not useful for or used by users. >From all the above, only net/slirp.c issue might be of interest. Thanks, /mjt