First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 169675
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jonathan Smith <smithj@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
libwpd-heap-overflow.patch patch to fix the issue patch Jonathan Smith 2007-03-06 21:12 0000 2.19 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 169675 depends on: Show dependency tree
Bug 169675 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-03-06 21:09 0000
libwpd is vulnerable to a heap overflow which can cause a denial of service
(crash) in programs using the library (such as openoffice, koffice, or
abiword).

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0002
https://issues.rpath.com/browse/RPL-1115

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Jonathan Smith 2007-03-06 21:12:02 0000 -------
Created an attachment (id=112328) [edit]
patch to fix the issue

two patches pulled from upstream cvs to fix the issue

------- Comment #2 From Matthias Geerdsen 2007-03-07 15:51:21 0000 -------
gnome herd, please verify and provide a new ebuild

------- Comment #3 From Daniel Gryniewicz 2007-03-07 17:28:45 0000 -------
Okay, I've added 0.8.4-r1 with what I believe to be the fix; I needed an
additional hunk on top of the patch above, presumably because our version was
so old.  Unfortuantely, without any information about the actual vulnerability,
I can't verify that this actually fixes the problem.  The CVE is restricted
from me, and the rpath issue doesn't list an exploit I can test.

------- Comment #4 From Raphael Marichez 2007-03-15 22:12:42 0000 -------
Thanks Daniel,

hi arches, please test & mark stable app-text/libwpd-0.8.4-r1, thanks

------- Comment #5 From Jeroen Roovers 2007-03-16 01:56:57 0000 -------
Stable for HPPA (and many thanks to the Maryland Courts Watcher[1] for
providing links to .wpd files).



[1] http://marylandcourts.blogspot.com/

------- Comment #6 From Christian Faulhammer 2007-03-16 08:27:49 0000 -------
(In reply to comment #4)
> Thanks Daniel,
> 
> hi arches, please test & mark stable app-text/libwpd-0.8.4-r1, thanks

 When doing so, please also mark stable app-text/wpd2sxw-0.7*, as the current
won't build with libwpd 0.8 (goes out to ppc).
x86 stable

------- Comment #7 From Ferris McCormick 2007-03-16 11:15:07 0000 -------
Sparc stable.  app-text/wpd2sxw has no sparc keyword, so nothing to do there.

------- Comment #8 From Jonathan Smith 2007-03-16 14:57:09 0000 -------
0.8.9 has (finally!) been released upstream to fix this release - we're
probably better off just bumping versions at this point

------- Comment #9 From Sune Kloppenborg Jeppesen 2007-03-16 15:06:16 0000 -------
Smithj if you'd rather want to bump, just remove arches from CC until you
commit the fixed ebuild.

------- Comment #10 From Jonathan Smith 2007-03-16 15:08:32 0000 -------
Well, I'm not on the gnome herd - want to ensure it doesn't break anything
first... input from the gnome folks?

------- Comment #11 From Sune Kloppenborg Jeppesen 2007-03-16 15:26:01 0000 -------
Back to ebuild for now.

------- Comment #12 From Jonathan Smith 2007-03-16 15:26:05 0000 -------
*** Bug 138233 has been marked as a duplicate of this bug. ***

------- Comment #13 From Daniel Gryniewicz 2007-03-19 16:42:36 0000 -------
Okay, I've bumped to 0.8.9.  I tested abiword-plugins, in addition to wpd2*,
and all work fine, so no apparent regressions.

------- Comment #14 From Hanno Boeck 2007-03-20 01:36:13 0000 -------
openoffice has vulnerable libwpd 0.8.8 bundled, so it's probably also affected?

------- Comment #15 From Hanno Boeck 2007-03-20 01:41:35 0000 -------
libwpd-0.8.9 fails to compile for me:

ibxml2   -DNDEBUG -I../../src/lib/ -O2 -march=pentium-m -fomit-frame-pointer
-pipe -MT test.o -MD -MP -MF ".deps/test.Tpo" -c -o test.o test.cpp; \
        then mv -f ".deps/test.Tpo" ".deps/test.Po"; else rm -f
".deps/test.Tpo"; exit 1; fi
test.cpp:24:32: error: cppunit/TestRunner.h: No such file or directory
test.cpp:25:32: error: cppunit/TestResult.h: No such file or directory
test.cpp:26:41: error: cppunit/TestResultCollector.h: No such file or directory
test.cpp:27:45: error: cppunit/extensions/HelperMacros.h: No such file or
directory
test.cpp:28:47: error: cppunit/BriefTestProgressListener.h: No such file or
directory
test.cpp:29:52: error: cppunit/extensions/TestFactoryRegistry.h: No such file
or directory
test.cpp:30:39: error: cppunit/CompilerOutputter.h: No such file or directory
test.cpp:41: error: 'CPPUNIT_NS' has not been declared
test.cpp:41: error: expected `{' before 'TestFixture'
test.cpp:41: error: invalid function declaration
test.cpp:56: error: invalid use of undefined type 'class Test'
test.cpp:41: error: forward declaration of 'class Test'
test.cpp:64: error: invalid use of undefined type 'class Test'
test.cpp:41: error: forward declaration of 'class Test'
test.cpp:69: error: invalid use of undefined type 'class Test'
test.cpp:41: error: forward declaration of 'class Test'
test.cpp: In member function 'void Test::testStream()':
test.cpp:92: error: 'CPPUNIT_ASSERT_EQUAL' was not declared in this scope
test.cpp:97: error: 'CPPUNIT_ASSERT' was not declared in this scope
test.cpp:139: error: expected primary-expression before ')' token
test.cpp:139: error: 'CPPUNIT_ASSERT_THROW' was not declared in this scope
test.cpp:208: error: expected primary-expression before ')' token
test.cpp: At global scope:
test.cpp:225: error: expected constructor, destructor, or type conversion
before ';' token
test.cpp: In function 'int main(int, char**)':
test.cpp:230: error: 'CPPUNIT_NS' has not been declared
test.cpp:230: error: expected `;' before 'controller'
test.cpp:233: error: 'CPPUNIT_NS' has not been declared
test.cpp:233: error: expected `;' before 'result'
test.cpp:234: error: 'controller' was not declared in this scope
test.cpp:234: error: 'result' was not declared in this scope
test.cpp:237: error: 'CPPUNIT_NS' has not been declared
test.cpp:237: error: expected `;' before 'progress'
test.cpp:238: error: 'progress' was not declared in this scope
test.cpp:241: error: 'CPPUNIT_NS' has not been declared
test.cpp:241: error: expected `;' before 'runner'
test.cpp:242: error: 'runner' was not declared in this scope
test.cpp:242: error: 'CPPUNIT_NS' has not been declared
test.cpp:246: error: 'CPPUNIT_NS' has not been declared
test.cpp:246: error: expected `;' before 'outputter'
test.cpp:247: error: 'outputter' was not declared in this scope
make[1]: *** [test.o] Error 1
make[1]: Leaving directory
`/var/tmp/paludis/app-text/libwpd-0.8.9/work/libwpd-0.8.9/src/test'
make: *** [check] Error 2

------- Comment #16 From Jonathan Smith 2007-03-20 02:51:31 0000 -------
(In reply to comment #14)
> openoffice has vulnerable libwpd 0.8.8 bundled, so it's probably also affected?
> 

Yes. In fact, the first public mention of this was a Novell security announce
of OOo (they apparently broke embargo).

------- Comment #17 From Andreas Proschofsky 2007-03-20 02:54:38 0000 -------
(In reply to comment #14)
> openoffice has vulnerable libwpd 0.8.8 bundled, so it's probably also affected?
> 

Yes, but this is already part of another bug (and handled there):

https://bugs.gentoo.org/show_bug.cgi?id=170828

------- Comment #18 From Jonathan Smith 2007-03-20 02:59:38 0000 -------
(In reply to comment #17)
> Yes, but this is already part of another bug (and handled there):
> 
> https://bugs.gentoo.org/show_bug.cgi?id=170828

That bug is not public, even though the security issue is (ref the novell
advisory), so it was hard to tell for those of us without special access :-)

Perhaps its time to open that one up too?

------- Comment #19 From Daniel Gryniewicz 2007-03-20 15:46:08 0000 -------
hanno: Apparently, cppunit is needed for FEATURES=test.  Since cppunit doesn't
have enough keywords, I've masked FEATURES=test for now, even though the unit
tests pass here.

------- Comment #20 From Sune Kloppenborg Jeppesen 2007-03-25 07:21:55 0000 -------
Finally calling arches.

Please test and mark stable. Target keywords are:

libwpd-0.8.9.ebuild:KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc-macos ppc64 sparc
x86 ~x86-fbsd"

------- Comment #21 From Markus Rothe 2007-03-25 09:25:29 0000 -------
ppc64 stable

------- Comment #22 From Tobias Scherbaum 2007-03-25 10:31:45 0000 -------
ppc stable

------- Comment #23 From Markus Meier 2007-03-25 11:33:07 0000 -------
app-text/libwpd-0.8.9  USE="doc"
1. emerges on x86
2. passes collision test
3. app-text/wpd2sxw-0.7.1 emerges with it

Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0,
2.6.19.5 i686)
=================================================================
System uname: 2.6.19.5 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 25 Mar 2007 09:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="autoconfig collision-protect distlocks metadata-transfer
parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LINGUAS="en de en_GB de_CH"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 asf berkdb bitmap-fonts cairo cdr cdrom cli
cracklib crypt cups dbus divx dri dts dvd dvdr dvdread eds emboss encode fam
ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6
isdnlog java jpeg kde kdeenablefinal ldap libg++ mad midi mikmod mmx mono mp3
mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd
python qt3 qt4 quicktime readline reflection rtsp ruby samba sdl session smp
spell spl sse sse2 sse3 ssl svg tcpd test tetex theora threads truetype
truetype-fonts type1-fonts unicode vcd vorbis wifi win32codecs wxwindows x264
x86 xine xml xorg xprint xv xvid zlib" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse" KERNEL="linux" LINGUAS="en de en_GB de_CH" USERLAND="GNU"
VIDEO_CARDS="i810 fbdev vesa"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #24 From Andrej Kacian (RETIRED) 2007-03-25 12:01:30 0000 -------
x86 done

------- Comment #25 From Jeroen Roovers 2007-03-26 03:07:10 0000 -------
Stable for HPPA (0.8.9 this time).

------- Comment #26 From Gustavo Zacarias (RETIRED) 2007-03-26 13:35:56 0000 -------
sparc stable.

------- Comment #27 From Daniel Gryniewicz 2007-03-26 20:07:30 0000 -------
amd64 done.

------- Comment #28 From Jose Luis Rivero (yoswink) 2007-03-27 12:23:16 0000 -------
alpha stable

------- Comment #29 From Chris Gianelloni (RETIRED) 2007-03-27 15:34:02 0000 -------
ia64 done...

------- Comment #30 From Sune Kloppenborg Jeppesen 2007-03-28 06:12:17 0000 -------
Thx everyone. This one is ready for GLSA decision. I vote NO.

------- Comment #31 From Matthias Geerdsen 2007-04-02 19:14:34 0000 -------
I tend to vote yes

------- Comment #32 From Raphael Marichez 2007-04-02 22:18:52 0000 -------
as for me its a B2 so I vovte Yes and i'm filing a GLSA request at the same
time.

------- Comment #33 From Sune Kloppenborg Jeppesen 2007-04-03 05:27:45 0000 -------
You're correct Falco.

------- Comment #34 From Matt Drew 2007-04-03 12:31:30 0000 -------
adding CVE-2007-1466

------- Comment #35 From Raphael Marichez 2007-04-06 23:29:02 0000 -------
GLSA 200704-07, thanks everybody

First Last Prev Next    No search results available      Search page      Enter new bug