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

Filename Description Type Creator Created Size Actions
tetex-src-3.0-dviljk-security-fixes.patch tetex-src-3.0-dviljk-security-fixes.patch patch Robert Buchholz 2007-11-06 03:17 0000 64.58 KB Details | Diff
tetex-src-3.0-dvips_bufferoverflow.patch tetex-src-3.0-dvips_bufferoverflow.patch patch Robert Buchholz 2007-11-06 03:29 0000 2.98 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 198238 depends on: Show dependency tree
Bug 198238 blocks: 196735

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-11-06 03:15 0000
+++ This bug was initially created as a clone of Bug #198229 +++

dviljk as shipped in app-text/tetex-3.0_p1-r4 is vulnerable to multiple buffer
overflows and insecure temporary file creation. See attached patch for details.

------- Comment #1 From Robert Buchholz 2007-11-06 03:17:52 0000 -------
Created an attachment (id=135310) [details]
tetex-src-3.0-dviljk-security-fixes.patch

Please note that the attached patch contains changes to configure.in, but does
not include a regenerated configure file, (e)autoreconf is necessary befure
building.

------- Comment #2 From Robert Buchholz 2007-11-06 03:18:38 0000 -------
tex, please advise.

------- Comment #3 From Robert Buchholz 2007-11-06 03:29:40 0000 -------
Created an attachment (id=135312) [details]
tetex-src-3.0-dvips_bufferoverflow.patch

For Details, see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447081

------- Comment #4 From Robert Buchholz 2007-11-06 03:30:45 0000 -------
^^ As mentioned above, another set of buffer overflows exist in dvips.

------- Comment #5 From Alexis Ballier 2007-11-07 23:04:50 0000 -------
fixed in tetex-3.0_p1-r5

------- Comment #6 From Robert Buchholz 2007-11-07 23:30:05 0000 -------
This also contains the fix for Xpdf, bug 196735. Thanks for handling it so
fast, Alexis.

Arches, please test and mark stable app-text/tetex-3.0_p1-r5.
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc
x86"

------- Comment #7 From Jeroen Roovers 2007-11-08 08:21:41 0000 -------
Stable for HPPA.

------- Comment #8 From Christian Faulhammer 2007-11-08 09:14:34 0000 -------
x86 stable

------- Comment #9 From Ferris McCormick 2007-11-08 13:33:00 0000 -------
Sparc stable.

------- Comment #10 From Raúl Porcel 2007-11-08 18:07:37 0000 -------
alpha/ia64 stable

------- Comment #11 From Markus Rothe 2007-11-08 18:13:52 0000 -------
ppc64 stable

------- Comment #12 From Samuli Suominen 2007-11-13 17:24:45 0000 -------
amd64 stable

------- Comment #13 From Robert Buchholz 2007-11-15 00:17:32 0000 -------
Alexis, I just discovered that tetex does not link against the system t1lib,
but its own version which is (probably) vulnerable to bug 193437.

I'll stop stabling here and we'll restart it with a new -r that passes
--with-system-t1lib to configure, ok?

------- Comment #14 From Alexis Ballier 2007-11-15 08:26:03 0000 -------
hmmm...

configure.in:test "$with_dvipng"  != no    && : ${needs_libt1=yes}
configure.in:test "$with_xdvik"   != no    && : ${needs_libt1=yes}
configure.in:test "$with_oxdvik"  != no    && : ${needs_libt1=yes}

so in our case it only affects us with use=X;
in tetex.eclass:
  if useq X ; then
        addwrite /var/cache/fonts
        xdvik="--with-xdvik --with-oxdvik"
        #xdvik="$xdvik --with-system-t1lib"
    else

I'll have to check why it's commented out...

------- Comment #15 From Alexis Ballier 2007-11-15 08:34:59 0000 -------
been added there, never touched again:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/tetex.eclass?r1=1.24&r2=1.25

what do you think, should we just uncomment it here, add the t1lib dep, and rev
bump tetex ? or the other way, add it in the ebuild ?

note that t1lib + use doc needs a latex compiler so this will cause circular
deps... monolithic ebuilds suck :/

------- Comment #16 From Robert Buchholz 2007-11-15 11:36:10 0000 -------
(In reply to comment #15)
> note that t1lib + use doc needs a latex compiler so this will cause circular
> deps... monolithic ebuilds suck :/

That indeed is a problem. So I would advise to patch the bundled t1lib, or is
there any strategy to avoid this?

The patch in /media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch
should work, if I remember the versions right.

------- Comment #17 From Alexis Ballier 2007-11-15 18:03:57 0000 -------
(In reply to comment #16)
> (In reply to comment #15)
> > note that t1lib + use doc needs a latex compiler so this will cause circular
> > deps... monolithic ebuilds suck :/
> 
> That indeed is a problem. So I would advise to patch the bundled t1lib, or is
> there any strategy to avoid this?

it should be possible to just not build xdvik in tetex, but as our tetex has
been doing this for years, I suppose it's better to keep it like this, patching
for security holes.

> The patch in /media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch
> should work, if I remember the versions right.


applied in tetex-3.0_p1-r6

------- Comment #18 From Robert Buchholz 2007-11-15 19:05:47 0000 -------
Arches, please test and mark stable app-text/tetex-3.0_p1-r6.
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc
x86"

------- Comment #19 From Markus Meier 2007-11-15 19:53:33 0000 -------
x86 stable

------- Comment #20 From Jeroen Roovers 2007-11-16 02:17:53 0000 -------
Stable for HPPA again.

------- Comment #21 From Ferris McCormick 2007-11-16 13:51:25 0000 -------
Stable on sparc.

------- Comment #22 From Raúl Porcel 2007-11-16 16:31:07 0000 -------
alpha/ia64 stable

------- Comment #23 From Jakub Moc (RETIRED) 2007-11-17 09:34:31 0000 -------
*** Bug 199421 has been marked as a duplicate of this bug. ***

------- Comment #24 From Tobias Scherbaum 2007-11-18 09:25:04 0000 -------
ppc stable

------- Comment #25 From Markus Rothe 2007-11-18 13:47:04 0000 -------
ppc64 stable

------- Comment #26 From Robert Buchholz 2007-11-18 21:46:02 0000 -------
compiles and works, amd64 stable.

------- Comment #27 From Robert Buchholz 2007-11-18 21:46:23 0000 -------
Moving to [glsa] then.

------- Comment #28 From Pierre-Yves Rofes 2007-11-18 23:00:51 0000 -------
GLSA 200711-26

------- Comment #29 From Peter Volkov 2008-03-06 09:47:02 0000 -------
Does not affect current (2008.0) release. Removing release.

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