Summary: | app-doc/{chmlib|kchmviewer} exploitable buffer overflow | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Gentoo Security | Reporter: | Sune Kloppenborg Jeppesen (RETIRED) <jaervosz> | ||||||
Component: | Vulnerabilities | Assignee: | Gentoo Security <security> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | normal | CC: | carlo, ruza, svyatogor | ||||||
Priority: | High | ||||||||
Version: | unspecified | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
URL: | http://archives.neohapsis.com/archives/fulldisclosure/2005-10/0536.html | ||||||||
Whiteboard: | B2 [glsa] DerCorny | ||||||||
Package list: | Runtime testing required: | --- | |||||||
Attachments: |
|
Description
Sune Kloppenborg Jeppesen (RETIRED)
2005-10-26 09:00:07 UTC
svyatogor, please provide a fixed ebuild fyi: app-doc/kchmplayer includes a copy of chmlib. Unstable and fixed with v.1.1. Does the security team keep a list of applications including third party libs? Thx carlo, I guess you mean kchmviewer and we don't keep a list of .... apps that include other apps (at least not yet). kchmplayer all fixed now. *** Bug 111052 has been marked as a duplicate of this bug. *** Sent an email to the maintainer, hope he will pick it up. Sergey is on it. In fact there are three buffer overflows : CVE-2005-2659 (fixed in >=0.36) Palasik Sandor discoverd a buffer overflow in the LZX decompression method. CVE-2005-2930 (fixed in >=0.36) A buffer overflow has been discovered that could lead to the execution of arbitrary code. CVE-2005-3318 (fixed in >=0.37) Sven Tantau discoverd a buffer overflow that could lead to the execution of arbitrary code. Ccing carlo so that he checks that kchmviewer-1.1 fixes all of them. (In reply to comment #3) > kchmplayer all fixed now. Sorry for the confusing misnaming. :) (In reply to comment #7) > Ccing carlo so that he checks that kchmviewer-1.1 fixes all of them. kchmviewer-1.1 includes chmlib-0.37 and is marked testing anyways, so it's all fine. Sergey any news on this one? Created attachment 72982 [details] Ebuild for =app-doc/chmlib-0.36 Sending ebuild per jaervosz's request. I'd have sent an ebuild for app-doc/chmlib-0.37 too, but 0.37 does not `make install` on amd64, I received the following build error during the install phase: >>> Install chmlib-0.37 into /var/tmp/portage/chmlib-0.37/image/ category app-doc chmod a+r src/libchm.la mkdir -p /usr install -m0755 src/libchm.la /var/tmp/portage/chmlib-0.37/image//usr/lib64/ install -m0644 ./src/chm_lib.h /var/tmp/portage/chmlib-0.37/image//usr/include/ install -m0755 src/.libs/libchm.so.0.0.0 /var/tmp/portage/chmlib-0.37/image//usr/lib64/ ln -s /var/tmp/portage/chmlib-0.37/image//usr/lib64/libchm.so.0.0.0 /var/tmp/portage/chmlib-0.37/image//usr/lib64/libchm.so ln -s /var/tmp/portage/chmlib-0.37/image//usr/lib64/libchm.so.0.0.0 /var/tmp/portage/chmlib-0.37/image//usr/lib64/libchm.so.0 x86_64-pc-linux-gnu-gcc -o extract_chmLib src/extract_chmLib.c -I/usr/include -L/usr/lib64 -lchm -march=k8 -O3 -pipe -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lchm collect2: ld returned 1 exit status make: *** [extract_chmLib] Error 1 !!! ERROR: app-doc/chmlib-0.37 failed. !!! Function src_install, Line 54, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. localhost chmlib # emerge --info Portage 2.0.53_rc7 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo x86_64) ================================================================= System uname: 2.6.14-gentoo x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.12.0_pre10 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apache2 apm arts audiofile avi bitmap-fonts bonobo bzip2 cgi cli crypt cups curl cvs dba dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran ftp gcj gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib ipv6 java jpeg junit kde lcms libg++ libwww lirc lzw lzw-tiff mad mhash mikmod mng mod_php motif mozsvg mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl pam pcre pdflib perl php png postgres python qt quicktime readline real sdl session slang socket sockets spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vcd visualization vorbis xine xinerama xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS solar/vapier/taviso/tigger please advise. Created attachment 73556 [details]
chmlib-0.37.4.ebuild
Ebuild for 0.37.4 version that fixes ebuild design errors (already fixed by
taviso in 0.35-r1) but succeeds in compiling lib + tools.
InCVS thx to taviso. Arches: please test chmlib-0.37.4 and mark stable. Stable on x86. For a test case (just in case the other arches need it), I download the file: http://www.pltw.org/OCHM/Digital.chm into ~/, made the directory ~/digital_out, then ran: cd ~ ; chmextract Digital.chm digital_out/ and verified the contents of the chm were successfully extracted to digital_out/ amd64 stable Marked ppc stable. GLSA 200511-23 |