Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 196898
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 196824
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Raphael Marichez <falco@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196898 depends on: Show dependency tree
Bug 196898 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-24 09:02 0000
author:         Keir Fraser <keir@xensource.com>
date:   Tue Oct 23 09:26:43 2007 +0100 (24 hours ago)
files:  tools/xenmon/xenbaked.c tools/xenmon/xenmon.py
description:    xenmon: Fix security vulnerability CVE-2007-3919.

The xenbaked daemon and xenmon utility communicate via a mmap'ed
shared file. Since this file is located in /tmp, unprivileged users
can cause arbitrary files to be truncated by creating a symlink from
the well-known /tmp filename to e.g., /etc/passwd.

The fix is to place the shared file in a directory to which only root
should have access (in this case /var/run/).

This bug was reported, and the fix suggested, by Steve Kemp
<skx@debian.org>. Thanks!

Signed-off-by: Keir Fraser <keir@xensource.com>

--- a/tools/xenmon/xenbaked.c   Mon Oct 22 21:06:11 2007 +0100
+++ b/tools/xenmon/xenbaked.c   Tue Oct 23 09:26:43 2007 +0100
@@ -589,7 +589,7 @@ error_t cmd_parser(int key, char *arg, s
     return 0;
 }

-#define SHARED_MEM_FILE "/tmp/xenq-shm"
+#define SHARED_MEM_FILE "/var/run/xenq-shm"
 void alloc_qos_data(int ncpu)
 {
     int i, n, pgsize, off=0;

--- a/tools/xenmon/xenmon.py    Mon Oct 22 21:06:11 2007 +0100
+++ b/tools/xenmon/xenmon.py    Tue Oct 23 09:26:43 2007 +0100
@@ -46,7 +46,7 @@ QOS_DATA_SIZE = struct.calcsize(ST_QDATA
 QOS_DATA_SIZE = struct.calcsize(ST_QDATA)*NSAMPLES +
struct.calcsize(ST_DOM_INFO)*NDOMAINS + struct.calcsize("4i")

 # location of mmaped file, hard coded right now
-SHM_FILE = "/tmp/xenq-shm"
+SHM_FILE = "/var/run/xenq-shm"

 # format strings
 TOTALS = 15*' ' + "%6.2f%%" + 35*' ' + "%6.2f%%"

------- Comment #1 From Sven Wegener 2007-10-24 11:04:49 0000 -------

*** This bug has been marked as a duplicate of bug 196824 ***

------- Comment #2 From Robert Buchholz 2007-10-24 11:06:00 0000 -------
marineam is just too fast for us to track xen bugs.
(and sven too fast for me)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug