emacs23: Insecure use of temporary files in included lisp libraries/packages (CVE-2014-3421 CVE-2014-3422 CVE-2014-3423 CVE-2014-3424)

Related Vulnerabilities: CVE-2014-3421   CVE-2014-3422   CVE-2014-3423   CVE-2014-3424  

Debian Bug report logs - #747100
emacs23: Insecure use of temporary files in included lisp libraries/packages (CVE-2014-3421 CVE-2014-3422 CVE-2014-3423 CVE-2014-3424)

version graph

Package: emacs23; Maintainer for emacs23 is Rob Browning <rlb@defaultvalue.org>; Source for emacs23 is src:emacs (PTS, buildd, popcon).

Reported by: Steve Kemp <steve@steve.org.uk>

Date: Mon, 5 May 2014 15:21:01 UTC

Severity: important

Tags: security

Found in version emacs23/23.4+1-4

Fixed in version 23.4+1-4.1+rm

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

Bug is archived. No further changes may be made.

Forwarded to bug-gnu-emacs@gnu.org

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Rob Browning <rlb@defaultvalue.org>:
Bug#747100; Package emacs23. (Mon, 05 May 2014 15:21:05 GMT) (full text, mbox, link).


Acknowledgement sent to Steve Kemp <steve@steve.org.uk>:
New Bug report received and forwarded. Copy sent to Rob Browning <rlb@defaultvalue.org>. (Mon, 05 May 2014 15:21:05 GMT) (full text, mbox, link).


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

From: Steve Kemp <steve@steve.org.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: emacs23: Insecure use of temporary files in included lisp libraries/packages
Date: Mon, 5 May 2014 15:38:34 +0100
Package: emacs23
Version: 23.4+1-4
Severity: important

There are several tempfile-vulnerabilities present in the Emacs Lisp
bundled and distributed with the emacs23 package.

Here are four brief pointers to unsafe code:

lisp/gnus/gnus-fun.el:
  In the function `gnus-grab-cam-face` the file "/tmp/gnus.face.ppm" is
 used, blindly allowing the existing file to be truncated, and symlinks
 followed.

lisp/emacs-lisp/find-gc.el:
  In the function `trace-call-tree` there are some horrific invocations
 of the csh, which manipulate the directory and symlinks beneath "/tmp/esrc".

lisp/net/browse-url.el
  In the function `browse-url-mosaic` the file "/tmp/Mosaic.$PID" is blindly
 overwritten.  Suspect this whole function is obsolete though :)

lisp/net/tramp.el
  The function `tramp-uudecode`, a fallback if a real uudecoding binary
 is not present, blindly uses "/tmp/tramp.$PID", truncating and removing
 the file.


I suspect that each should receive a CVE identifier.


-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF8)
Shell: /bin/sh linked to /bin/dash

Versions of packages emacs23 depends on:
ii  emacs23-bin-common  23.4+1-4
ii  gconf-service       3.2.5-1+build1
ii  libasound2          1.0.25-4
ii  libatk1.0-0         2.4.0-2
ii  libc6               2.13-38+deb7u1
ii  libcairo2           1.12.2-3
ii  libdbus-1-3         1.6.8-1+deb7u1
ii  libfontconfig1      2.9.0-7.1
ii  libfreetype6        2.4.9-1.1
ii  libgconf-2-4        3.2.5-1+build1
ii  libgdk-pixbuf2.0-0  2.26.1-1
ii  libgif4             4.1.6-10
ii  libglib2.0-0        2.33.12+really2.32.4-5
ii  libgpm2             1.20.4-6
ii  libgtk2.0-0         2.24.10-2
ii  libice6             2:1.0.8-2
ii  libjpeg8            8d-1
ii  libm17n-0           1.6.3-2
ii  libncurses5         5.9-10
ii  libotf0             0.9.12-2
ii  libpango1.0-0       1.30.0-1
ii  libpng12-0          1.2.49-1
ii  librsvg2-2          2.36.1-2
ii  libsm6              2:1.2.1-2
ii  libtiff4            3.9.6-11
ii  libtinfo5           5.9-10
ii  libx11-6            2:1.5.0-1+deb7u1
ii  libxft2             2.3.1-1
ii  libxpm4             1:3.5.10-1
ii  libxrender1         1:0.9.7-1+deb7u1
ii  zlib1g              1:1.2.7.dfsg-13

emacs23 recommends no packages.

Versions of packages emacs23 suggests:
pn  emacs23-common-non-dfsg  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#747100; Package emacs23. (Wed, 07 May 2014 03:42:10 GMT) (full text, mbox, link).


Acknowledgement sent to Rob Browning <rlb@defaultvalue.org>:
Extra info received and forwarded to list. (Wed, 07 May 2014 03:42:10 GMT) (full text, mbox, link).


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

From: Rob Browning <rlb@defaultvalue.org>
To: bug-gnu-emacs@gnu.org
Cc: Steve Kemp <steve@steve.org.uk>, 747100@bugs.debian.org, 747100-forwarded@bugs.debian.org
Subject: Re: Bug#747100: emacs23: Insecure use of temporary files in included lisp libraries/packages
Date: Tue, 06 May 2014 22:38:07 -0500
[If possible, please preserve the 747100-forwarded address in any replies.]

The following bug was recently filed against the emacs23 package, and
after some preliminary research, it appears that the security issues
mentioned may still apply to 24.3.  (Though it looks like the relevant
tramp file may now be tramp-sh.el).

Steve Kemp <steve@steve.org.uk> writes:

> Package: emacs23
> Version: 23.4+1-4
> Severity: important
>
> There are several tempfile-vulnerabilities present in the Emacs Lisp
> bundled and distributed with the emacs23 package.
>
> Here are four brief pointers to unsafe code:
>
> lisp/gnus/gnus-fun.el:
>   In the function `gnus-grab-cam-face` the file "/tmp/gnus.face.ppm" is
>  used, blindly allowing the existing file to be truncated, and symlinks
>  followed.
>
> lisp/emacs-lisp/find-gc.el:
>   In the function `trace-call-tree` there are some horrific invocations
>  of the csh, which manipulate the directory and symlinks beneath "/tmp/esrc".
>
> lisp/net/browse-url.el
>   In the function `browse-url-mosaic` the file "/tmp/Mosaic.$PID" is blindly
>  overwritten.  Suspect this whole function is obsolete though :)
>
> lisp/net/tramp.el
>   The function `tramp-uudecode`, a fallback if a real uudecoding binary
>  is not present, blindly uses "/tmp/tramp.$PID", truncating and removing
>  the file.
>
>
> I suspect that each should receive a CVE identifier.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



Reply sent to Rob Browning <rlb@defaultvalue.org>:
You have marked Bug as forwarded. (Wed, 07 May 2014 03:42:14 GMT) (full text, mbox, link).


Added tag(s) security. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Wed, 07 May 2014 09:12:15 GMT) (full text, mbox, link).


Changed Bug title to 'emacs23: Insecure use of temporary files in included lisp libraries/packages (CVE-2014-3421 CVE-2014-3422 CVE-2014-3423 CVE-2014-3424)' from 'emacs23: Insecure use of temporary files in included lisp libraries/packages' Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Wed, 07 May 2014 20:12:13 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Rob Browning <rlb@defaultvalue.org>:
Bug#747100; Package emacs23. (Thu, 08 May 2014 09:51:08 GMT) (full text, mbox, link).


Acknowledgement sent to Steve Kemp <steve@steve.org.uk>:
Extra info received and forwarded to list. Copy sent to Rob Browning <rlb@defaultvalue.org>. (Thu, 08 May 2014 09:51:08 GMT) (full text, mbox, link).


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

From: Steve Kemp <steve@steve.org.uk>
To: 17428@debbugs.gnu.org
Cc: 747100@bugs.debian.org
Subject: Re: bug#17428: Bug#747100: emacs23: Insecure use of temporary files in included lisp libraries/packages
Date: Thu, 08 May 2014 10:03:48 +0100
[Message part 1 (text/plain, inline)]
  Clearly I'm an idiot, the correct link is this:

        http://www.openwall.com/lists/oss-security/2014/05/07/7

Steve
-- 
http://www.steve.org.uk/

Information forwarded to debian-bugs-dist@lists.debian.org, Rob Browning <rlb@defaultvalue.org>:
Bug#747100; Package emacs23. (Thu, 08 May 2014 09:51:11 GMT) (full text, mbox, link).


Acknowledgement sent to Steve Kemp <steve@steve.org.uk>:
Extra info received and forwarded to list. Copy sent to Rob Browning <rlb@defaultvalue.org>. (Thu, 08 May 2014 09:51:11 GMT) (full text, mbox, link).


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

From: Steve Kemp <steve@steve.org.uk>
To: 17428@debbugs.gnu.org
Cc: 747100@bugs.debian.org
Subject: Re: bug#17428: Bug#747100: emacs23: Insecure use of temporary files in included lisp libraries/packages
Date: Thu, 08 May 2014 10:02:06 +0100
[Message part 1 (text/plain, inline)]
  These issues have now had several CVE identifiers
 associated with them, for future tracking:

    http://www.openwall.com/lists/oss-security/2014/03/14/5

Steve
-- 
http://www.steve.org.uk/

Bug 747100 cloned as bug 748140 Request was from Rob Browning <rlb@defaultvalue.org> to control@bugs.debian.org. (Wed, 14 May 2014 18:39:07 GMT) (full text, mbox, link).


Message #30 received at 747100-forwarded@bugs.debian.org (full text, mbox, reply):

From: Rob Browning <rlb@defaultvalue.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 747100-forwarded@bugs.debian.org, 748140-forwarded@bugs.debian.org, Steve Kemp <steve@steve.org.uk>
Subject: Re: bug#17428: Bug#747100: emacs23: Insecure use of temporary files in included lisp libraries/packages
Date: Wed, 14 May 2014 17:51:08 -0500
Glenn Morris <rgm@gnu.org> writes:

>>> lisp/gnus/gnus-fun.el:
>>>   In the function `gnus-grab-cam-face` the file "/tmp/gnus.face.ppm" is
>>>  used, blindly allowing the existing file to be truncated, and symlinks
>>>  followed.
>
> http://lists.gnu.org/archive/html/emacs-diffs/2014-05/msg00055.html
>
>>> lisp/emacs-lisp/find-gc.el:
>>>   In the function `trace-call-tree` there are some horrific invocations
>>>  of the csh, which manipulate the directory and symlinks beneath "/tmp/esrc".
>
> http://lists.gnu.org/archive/html/emacs-diffs/2014-05/msg00056.html
>
>>> lisp/net/browse-url.el
>>>   In the function `browse-url-mosaic` the file "/tmp/Mosaic.$PID" is blindly
>>>  overwritten.  Suspect this whole function is obsolete though :)
>
> Not an (Emacs) bug.
>
> http://lists.gnu.org/archive/html/emacs-diffs/2014-05/msg00057.html
>
>>> lisp/net/tramp.el
>>>   The function `tramp-uudecode`, a fallback if a real uudecoding binary
>>>  is not present, blindly uses "/tmp/tramp.$PID", truncating and removing
>>>  the file.
>
> http://lists.gnu.org/archive/html/emacs-diffs/2014-05/msg00060.html

Thanks for the quick help.  I should have a new emacs24 package shortly.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sun, 26 Oct 2014 19:01:18 GMT) (full text, mbox, link).


Notification sent to Steve Kemp <steve@steve.org.uk>:
Bug acknowledged by developer. (Sun, 26 Oct 2014 19:01:18 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 9741-done@bugs.debian.org,21818-done@bugs.debian.org,54659-done@bugs.debian.org,77832-done@bugs.debian.org,114849-done@bugs.debian.org,288147-done@bugs.debian.org,293557-done@bugs.debian.org,335712-done@bugs.debian.org,405684-done@bugs.debian.org,421505-done@bugs.debian.org,422236-done@bugs.debian.org,448563-done@bugs.debian.org,498125-done@bugs.debian.org,508776-done@bugs.debian.org,513660-done@bugs.debian.org,539919-done@bugs.debian.org,540151-done@bugs.debian.org,540237-done@bugs.debian.org,540397-done@bugs.debian.org,540451-done@bugs.debian.org,541393-done@bugs.debian.org,543370-done@bugs.debian.org,543564-done@bugs.debian.org,545405-done@bugs.debian.org,546209-done@bugs.debian.org,547538-done@bugs.debian.org,551165-done@bugs.debian.org,552981-done@bugs.debian.org,552983-done@bugs.debian.org,554538-done@bugs.debian.org,556405-done@bugs.debian.org,557804-done@bugs.debian.org,557935-done@bugs.debian.org,561635-done@bugs.debian.org,563314-done@bugs.debian.org,564670-done@bugs.debian.org,565315-done@bugs.debian.org,566947-done@bugs.debian.org,567934-done@bugs.debian.org,569295-done@bugs.debian.org,569573-done@bugs.debian.org,570774-done@bugs.debian.org,577571-done@bugs.debian.org,578985-done@bugs.debian.org,580198-done@bugs.debian.org,581648-done@bugs.debian.org,582141-done@bugs.debian.org,583106-done@bugs.debian.org,583373-done@bugs.debian.org,584673-done@bugs.debian.org,586223-done@bugs.debian.org,586800-done@bugs.debian.org,588450-done@bugs.debian.org,588527-done@bugs.debian.org,589939-done@bugs.debian.org,590262-done@bugs.debian.org,592083-done@bugs.debian.org,592316-done@bugs.debian.org,592854-done@bugs.debian.org,594194-done@bugs.debian.org,594319-done@bugs.debian.org,594346-done@bugs.debian.org,594514-done@bugs.debian.org,594592-done@bugs.debian.org,595036-done@bugs.debian.org,603573-done@bugs.debian.org,606355-done@bugs.debian.org,606805-done@bugs.debian.org,608417-done@bugs.debian.org,609100-done@bugs.debian.org,609752-done@bugs.debian.org,611428-done@bugs.debian.org,612687-done@bugs.debian.org,612747-done@bugs.debian.org,614752-done@bugs.debian.org,618453-done@bugs.debian.org,618787-done@bugs.debian.org,623624-done@bugs.debian.org,623758-done@bugs.debian.org,624584-done@bugs.debian.org,627375-done@bugs.debian.org,627751-done@bugs.debian.org,630079-done@bugs.debian.org,630741-done@bugs.debian.org,634911-done@bugs.debian.org,637414-done@bugs.debian.org,639335-done@bugs.debian.org,641115-done@bugs.debian.org,643334-done@bugs.debian.org,646029-done@bugs.debian.org,646205-done@bugs.debian.org,646233-done@bugs.debian.org,646328-done@bugs.debian.org,646798-done@bugs.debian.org,647213-done@bugs.debian.org,647242-done@bugs.debian.org,647811-done@bugs.debian.org,648389-done@bugs.debian.org,648688-done@bugs.debian.org,649816-done@bugs.debian.org,649837-done@bugs.debian.org,650502-done@bugs.debian.org,650526-done@bugs.debian.org,651051-done@bugs.debian.org,651420-done@bugs.debian.org,655073-done@bugs.debian.org,655161-done@bugs.debian.org,662045-done@bugs.debian.org,663129-done@bugs.debian.org,663499-done@bugs.debian.org,665955-done@bugs.debian.org,667744-done@bugs.debian.org,668164-done@bugs.debian.org,669405-done@bugs.debian.org,669592-done@bugs.debian.org,671535-done@bugs.debian.org,674699-done@bugs.debian.org,677365-done@bugs.debian.org,680211-done@bugs.debian.org,680981-done@bugs.debian.org,681100-done@bugs.debian.org,683391-done@bugs.debian.org,687170-done@bugs.debian.org,689164-done@bugs.debian.org,690743-done@bugs.debian.org,693168-done@bugs.debian.org,693461-done@bugs.debian.org,695468-done@bugs.debian.org,697120-done@bugs.debian.org,698235-done@bugs.debian.org,700867-done@bugs.debian.org,701944-done@bugs.debian.org,702913-done@bugs.debian.org,703079-done@bugs.debian.org,705203-done@bugs.debian.org,705330-done@bugs.debian.org,706589-done@bugs.debian.org,707708-done@bugs.debian.org,721436-done@bugs.debian.org,722581-done@bugs.debian.org,724511-done@bugs.debian.org,724737-done@bugs.debian.org,730784-done@bugs.debian.org,735193-done@bugs.debian.org,735998-done@bugs.debian.org,738638-done@bugs.debian.org,739479-done@bugs.debian.org,741536-done@bugs.debian.org,743586-done@bugs.debian.org,746627-done@bugs.debian.org,747100-done@bugs.debian.org,747953-done@bugs.debian.org,752031-done@bugs.debian.org,766395-done@bugs.debian.org,
Cc: emacs23@packages.debian.org, emacs23@packages.qa.debian.org
Subject: Bug#753885: Removed package(s) from unstable
Date: Sun, 26 Oct 2014 18:48:55 +0000
Version: 23.4+1-4.1+rm

Dear submitter,

as the package emacs23 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/753885

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. (Mon, 24 Nov 2014 07:25:41 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 14:18:25 2019; Machine Name: beach

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.