<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>194713</bug_id>
          
          <creation_ts>2007-10-04 14:38 0000</creation_ts>
          <short_desc>app-editors/emacs-cvs, app-emacs/tramp: mktemp insecure file creation (CVE-2007-5377)</short_desc>
          <delta_ts>2007-10-24 10:58:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00132.html</bug_file_loc>
          <status_whiteboard>B3? [glsa]</status_whiteboard>
          <keywords>SECURITY</keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulm@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>emacs@gentoo.org</cc>
    
    <cc>xemacs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-10-04 14:38:21 0000</bug_when>
            <thetext>According to http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00132.html there might be a &quot;temp file hole&quot; in Emacs functions tramp-make-temp-file and tramp-make-tramp-temp-file.

Affected ebuilds:

   =app-editors/emacs-cvs-22.1.50_p20070829 (CVS snapshot)
   =app-editors/emacs-cvs-23.0.0-r7 (live CVS, hardmasked)
   =app-editors/emacs-cvs-23.0.50 (live CVS)
   =app-emacs/tramp-2.1.10-r1 (stable)

I have verified that app-editors/emacs and &lt;app-emacs/tramp-2.1 are _not_ affected by the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-10-04 15:05:35 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt;    =app-editors/emacs-cvs-22.1.50_p20070829 (CVS snapshot)

 Can be masked, we want it in the tree as reference because shortly after big changes were introduced into upstream&apos;s tree.  Patch it?

&gt;    =app-editors/emacs-cvs-23.0.0-r7 (live CVS, hardmasked)
&gt;    =app-editors/emacs-cvs-23.0.50 (live CVS)

 Will regulate itself by upstream, we can do a revision bump to force users to upgrade.

&gt;    =app-emacs/tramp-2.1.10-r1 (stable)

 Will be patched by us.
 
&gt; I have verified that app-editors/emacs and &lt;app-emacs/tramp-2.1 are _not_
&gt; affected by the problem.

 And you even filed it faster than me! 

Here I propose B3 as severity, because confidential information can leak.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-10-06 16:29:24 0000</bug_when>
            <thetext>Upstream has committed a patch to their CVS, and I have backported it to app-emacs/tramp-2.1.10 and app-editors/emacs-cvs-22.1.50_p20070829.

I still have to do some more testing, but I hope I can commit new ebuilds for both this evening.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-10-06 18:02:06 0000</bug_when>
            <thetext>Current status:

=app-editors/emacs-cvs-22.1.50_p20070829
   fixed in -r1

=app-editors/emacs-cvs-23.0.0-r7
   live CVS, not yet fixed, hardmasked

=app-editors/emacs-cvs-23.0.50
   live CVS, was fixed by upstream
   security team: asking you for advice, is a revbump needed here?

=app-emacs/tramp-2.1.10-r1
   fixed in -r2


Arch teams: Please stabilise app-emacs/tramp-2.1.10-r2
Test plan: &lt;http://overlays.gentoo.org/proj/emacs/wiki/test%20plans&gt;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-10-06 21:30:06 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; Arch teams: Please stabilise app-emacs/tramp-2.1.10-r2
&gt; Test plan: &lt;http://overlays.gentoo.org/proj/emacs/wiki/test%20plans&gt;

ppc stable

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-10-06 21:52:41 0000</bug_when>
            <thetext>x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-10-09 17:32:33 0000</bug_when>
            <thetext>alpha/sparc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kingtaco@gentoo.org</who>
            <bug_when>2007-10-11 07:31:25 0000</bug_when>
            <thetext>amd64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-10-11 07:38:54 0000</bug_when>
            <thetext>app-emacs/tramp-2.1.10-r1 removed.
Everything fixed (or hardmasked) now.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aetius@gentoo.org</who>
            <bug_when>2007-10-11 21:35:31 0000</bug_when>
            <thetext>Your typical insecure temp file creation bug, I vote yes for GLSA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-10-11 21:37:31 0000</bug_when>
            <thetext>voting yes too, and request filed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-10-11 21:51:54 0000</bug_when>
            <thetext>Vulnerable versions:
app-emacs-tramp   &lt;2.1.10-r2

Unaffected versions:
app-emacs/tramp   &lt;2.1, &gt;=2.1.10-r2

app-editors/emacs-cvs never had any stable version.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>py@gentoo.org</who>
            <bug_when>2007-10-20 21:24:53 0000</bug_when>
            <thetext>GLSA 200710-22</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-24 10:58:31 0000</bug_when>
            <thetext>Just to be explicit about this: app-xemacs/tramp-1.37 is based on tramp 2.0.55 and thus not affected by this bug. When a new version of app-xemacs/tramp is generated upstream we (=xemacs herd) should check that this is not based on a version that has this issue.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>