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)
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
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):
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):
[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):
[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):
[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):
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):
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.