Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208999 (CVE-2008-0411) - app-text/ghostscript-* Stack-based buffer overflow in .seticcspace (CVE-2008-0411)
Summary: app-text/ghostscript-* Stack-based buffer overflow in .seticcspace (CVE-2008-...
Status: RESOLVED FIXED
Alias: CVE-2008-0411
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL: http://scary.beasts.org/security/CESA...
Whiteboard: A2 [glsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 13:58 UTC by Robert Buchholz (RETIRED)
Modified: 2020-04-04 12:15 UTC (History)
11 users (show)

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


Attachments
ghostscript-8.60-CVE-2008-0411.diff (ghostscript-8.60-CVE-2008-0411.diff,415 bytes, patch)
2008-02-14 02:28 UTC, Robert Buchholz (RETIRED)
no flags Details | Diff
ghostscript-gnu-8.60.0-r1.ebuild.patch (ghostscript-gnu-8.60.0-r1.ebuild.patch,435 bytes, patch)
2008-02-25 07:32 UTC, Peter Volkov (RETIRED)
no flags Details | Diff
ghostscript-esp-8.15.4.ebuild.patch (ghostscript-esp-8.15.4.ebuild.patch,2.17 KB, patch)
2008-02-25 08:57 UTC, Peter Volkov (RETIRED)
no flags Details | Diff
ghostscript-gpl-8.61-r2.ebuild.patch (ghostscript-gpl-8.61-r2.ebuild.patch,520 bytes, patch)
2008-02-25 09:00 UTC, Peter Volkov (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2008-02-05 13:58:41 UTC
Stack-based buffer overflow in the zseticcspace() function in zicc.c, will result in arbitrary code execution.

Currently under embargo, awaiting upstream patch. The $URL is private.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-02-14 02:28:20 UTC
Tom and Stefan, can you please create an ebuild with the patch applied and attach it to this bug. Do not commit anything to CVS yet as long as this bug is under embargo.
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-02-14 02:28:50 UTC
Created attachment 143467 [details, diff]
ghostscript-8.60-CVE-2008-0411.diff
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2008-02-24 11:17:28 UTC
Tom and Stefan, can you please prepare an ebuild so we can test this before Feb. 27?
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-02-25 07:32:37 UTC
Created attachment 144554 [details, diff]
ghostscript-gnu-8.60.0-r1.ebuild.patch

I'll attach patch's for maintainer and others review. This one is for ghostscript-gnu. Other ghostscript packages will follow as soon as I test them...
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-02-25 08:57:02 UTC
Created attachment 144560 [details, diff]
ghostscript-esp-8.15.4.ebuild.patch

Patch for ghostscript-esp. Includes lot's of quotations fixes.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-02-25 09:00:50 UTC
Created attachment 144561 [details, diff]
ghostscript-gpl-8.61-r2.ebuild.patch

And this is patch for ghostscript-gpl. But note during commit patch itself should go into  ghostscript-gpl-8.61-patchset-4.tar.bz2. So this patch is for testing purposes only.
Comment 7 Robert Buchholz (RETIRED) gentoo-dev 2008-02-25 16:05:59 UTC
Arch Security Liaisons, please test the attached ebuilds and report stable on this bug.

=app-text/ghostscript-esp-8.15.4-r1
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 release s390 sh sparc x86"

=app-text/ghostscript-gnu-8.60.0-r2
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 release sh sparc x86"

=app-text/ghostscript-gpl-8.61-r3
Target keywords : "ppc64 release"


CC'ing current Liaisons:
   alpha : ferdy
   amd64 : welp
    hppa : jer
     ppc : dertobi123
   ppc64 : corsair
 release : pva
   sparc : fmccor
     x86 : opfer
Comment 8 Robert Buchholz (RETIRED) gentoo-dev 2008-02-25 16:06:53 UTC
Oh, and thanks Peter for preparing the ebuilds and doing some QA on the existing ones.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-02-25 17:47:34 UTC
Both are good for HPPA.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-25 17:51:23 UTC
(In reply to comment #7)
> Arch Security Liaisons, please test the attached ebuilds and report stable on
> this bug.

There is something wrong with the keywords:
> =app-text/ghostscript-gpl-8.61-r3
> Target keywords : "ppc64 release"

 Especially this one.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-02-25 17:55:49 UTC
(In reply to comment #10)
> (In reply to comment #7)
> > Arch Security Liaisons, please test the attached ebuilds and report stable on
> > this bug.
> 
> There is something wrong with the keywords:
> > =app-text/ghostscript-gpl-8.61-r3
> > Target keywords : "ppc64 release"
> 
>  Especially this one.

Not just that - AFAIK ghostscript-esp is getting dropped somewhere in the future and this bug doesn't have an attachment that patches a ghostscript-esp ebuild.

Also odd is that patch to a few ebuilds were posted instead of the new ebuilds themselves as is common practice.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-25 17:58:24 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #7)
> > > Arch Security Liaisons, please test the attached ebuilds and report stable on
> > > this bug.
> > 
> > There is something wrong with the keywords:
> > > =app-text/ghostscript-gpl-8.61-r3
> > > Target keywords : "ppc64 release"
> > 
> >  Especially this one.
> 
> Not just that - AFAIK ghostscript-esp is getting dropped somewhere in the
> future and this bug doesn't have an attachment that patches a ghostscript-esp
> ebuild.

 It does.  See comment #5.
 
> Also odd is that patch to a few ebuilds were posted instead of the new ebuilds
> themselves as is common practice.

 Not that bad.
Comment 13 Robert Buchholz (RETIRED) gentoo-dev 2008-02-25 18:03:07 UTC
(In reply to comment #10)
> There is something wrong with the keywords:

Yes, sorry. I mixed up gpl and gnu.


=app-text/ghostscript-esp-8.15.4-r1
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 release s390
sh sparc x86"

=app-text/ghostscript-gnu-8.60.0-r2
Target keywords : "ppc64 release"

=app-text/ghostscript-gpl-8.61-r3
Target keywords : "alpha amd64 arm hppa ia64 ppc ppc64 release sh sparc x86"
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-25 18:09:57 UTC
Ok...-gpl and -esp fine on x86, they survived my stress test with different things on a really huge PostScript file.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2008-02-25 18:15:39 UTC
(In reply to comment #12)
>  It does.  See comment #5.

Ow, missed that. Sorry.

> > Also odd is that patch to a few ebuilds were posted instead of the new ebuilds
> > themselves as is common practice.
> 
>  Not that bad.

It's bad when you require seven people to download and apply three patches individually - it's one more step to perform in testing each of the ebuilds.
Comment 16 Peter Volkov (RETIRED) gentoo-dev 2008-02-25 18:28:03 UTC
Jeroen I didn't knew that and will do next time. Right now I've downloaded 5 patches for shorewall* packages and believe me - patches are not so hard to use ;) Just 2-3 additional commands but they worth it as patch greatly simplify review. If that's necessary I can attach full ebuilds now.
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2008-02-26 04:22:32 UTC
ghostscript-esp is good for HPPA too.
Comment 18 Tobias Scherbaum (RETIRED) gentoo-dev 2008-02-26 19:55:47 UTC
looks good on ppc ...
Comment 19 Markus Rothe (RETIRED) gentoo-dev 2008-02-28 08:33:09 UTC
looks good on ppc64, too.
Comment 20 Ferris McCormick (RETIRED) gentoo-dev 2008-02-28 21:13:30 UTC
ghostscript-gpl-8.61.r2 is good on sparc; the others look good on sparc.  I also thought ghostscript-esp was either dying or dead, but it does look good.  Why are we keeping it around?
Comment 21 Peter Weller (RETIRED) gentoo-dev 2008-02-28 21:51:44 UTC
Looks good for amd64 too.
Comment 22 Robert Buchholz (RETIRED) gentoo-dev 2008-02-29 08:54:28 UTC
This is public now. Peter/Printing, can you commit this to the tree with the stable keywords mentioned here. I can re-cc the missing arches. 
Comment 23 Peter Volkov (RETIRED) gentoo-dev 2008-02-29 12:22:14 UTC
Commited in the tree.

Target keywords left:
=app-text/ghostscript-esp-8.15.4-r1: "release, alpha, arm, ia64, m68k, mips, s390, sh"
=app-text/ghostscript-gpl-8.61-r3: "release, alpha, arm, ia64, m68k, sh"

Seems that the only reason to keep app-text/ghostscript-esp in the tree is that mips, s390 and sh still have not keyworded/stabilized app-text/ghostscript-{gpl,gnu}.
Comment 24 Raúl Porcel (RETIRED) gentoo-dev 2008-03-01 20:21:17 UTC
alpha/ia64 stable, Robert, i think i told you to cc me on restricted bugs, i hate you now! :P
Comment 25 Ryan Hill (RETIRED) gentoo-dev 2008-03-01 22:18:18 UTC
mips is going all ~arch.
Comment 26 Peter Volkov (RETIRED) gentoo-dev 2008-03-02 08:32:11 UTC
Fixed in release snapshot.
Comment 27 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2008-03-02 15:26:05 UTC
Seems ready for GLSA.
Comment 28 Timo Gurr (RETIRED) gentoo-dev 2008-03-04 21:08:21 UTC
Just a note: I committed ghostscript-gpl-8.62 to the tree a few minutes ago which had the fix applied upstream.
Comment 29 Pierre-Yves Rofes (RETIRED) gentoo-dev 2008-03-08 18:30:41 UTC
GLSA 200803-14