Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201570 - net-print/cups < 1.2.12-r4 SNMP backend buffer overflow (CVE-2007-5849)
Summary: net-print/cups < 1.2.12-r4 SNMP backend buffer overflow (CVE-2007-5849)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Security
URL:
Whiteboard: A1 [glsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 09:31 UTC by Robert Buchholz (RETIRED)
Modified: 2020-04-04 10:13 UTC (History)
1 user (show)

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


Attachments
cups-SNMP-CVE-2007-5849.patch (cups-SNMP-CVE-2007-5849.patch,935 bytes, patch)
2007-12-07 09:32 UTC, Robert Buchholz (RETIRED)
no flags Details | Diff
cups-1.2.12-r4.ebuild (cups-1.2.12-r4.ebuild,6.89 KB, text/plain)
2007-12-11 21:25 UTC, Timo Gurr (RETIRED)
no flags Details
cups-1.3.4-r4.ebuild (cups-1.3.4-r4.ebuild,7.95 KB, text/plain)
2007-12-11 21:25 UTC, Timo Gurr (RETIRED)
no flags Details
cups-CVE-2007-5849.patch (cups-CVE-2007-5849.patch,1017 bytes, text/plain)
2007-12-11 21:26 UTC, Timo Gurr (RETIRED)
no flags Details
pdftops-1.20.gentoo, fixing bug #201042 (pdftops-1.20.gentoo,10.17 KB, text/plain)
2007-12-11 21:27 UTC, Timo Gurr (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2007-12-07 09:31:05 UTC
Aaron Sigel reported to us a stack-based buffer overflow in the SNMP backend of CUPS when parsing the reply to an SNMP print lookup request. Exploitation may allow the remote execution of arbitrary code on the cups server.

I'll attach a patch. Stefan and Timo, do not commit anything to CVS yet, as this issue is under embargo until Dec. 13. Please attach an updated ebuild to this bug (possibly also addressing bug 201042 ?) and we will do prestable testing here.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2007-12-07 09:32:59 UTC
Created attachment 137954 [details, diff]
cups-SNMP-CVE-2007-5849.patch
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2007-12-11 19:45:13 UTC
ping
Comment 3 Timo Gurr (RETIRED) gentoo-dev 2007-12-11 21:25:31 UTC
Created attachment 138275 [details]
cups-1.2.12-r4.ebuild
Comment 4 Timo Gurr (RETIRED) gentoo-dev 2007-12-11 21:25:48 UTC
Created attachment 138277 [details]
cups-1.3.4-r4.ebuild
Comment 5 Timo Gurr (RETIRED) gentoo-dev 2007-12-11 21:26:22 UTC
Created attachment 138279 [details]
cups-CVE-2007-5849.patch
Comment 6 Timo Gurr (RETIRED) gentoo-dev 2007-12-11 21:27:12 UTC
Created attachment 138281 [details]
pdftops-1.20.gentoo, fixing bug #201042
Comment 7 Robert Buchholz (RETIRED) gentoo-dev 2007-12-11 21:34:53 UTC
Thanks.

Arch Security Liaisons, please test the attached ebuild (cups-1.2.12-r4) and report it stable on this bug.
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"

CC'ing current Liaisons:
  alpha : ferdy
  amd64 : welp
   hppa : jer
    ppc : dertobi123
  ppc64 : corsair
  sparc : ferdy
    x86 : tsunam

For the change in the pdftops script, you should probably try printing a pdf file with lp(r) on a ps printer.
Comment 8 Robert Buchholz (RETIRED) gentoo-dev 2007-12-11 22:17:57 UTC
prints fine (well, at least not worse than before) on amd64.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-12 08:34:30 UTC
(In reply to comment #7)
> For the change in the pdftops script, you should probably try printing a pdf
> file with lp(r) on a ps printer.

 PDF file to local PS printer ... ok
 PDF file to remote PS printer ... ok
 Test page from Windows to remote PCL printer ... ok

x86 is fine.
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2007-12-12 14:30:03 UTC
Adding Ferris for sparc since i can't test this on sparc.
Comment 11 Ferris McCormick (RETIRED) gentoo-dev 2007-12-12 15:21:29 UTC
Tested on sparc only with a remote printer, because that is all I have.  That said, sparc is fine, both with .ps files and with .pdf files (using the attached pdftops-1.20.gentoo filter).

That said, why is ferdy the sparc liaison for security bugs?  As far as I know, he is not a sparc user, and he is not a sparc developer, last I knew.  Unless you have a good reason not to, please use either me or armin76 as the sparc arch contact.
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2007-12-12 16:24:12 UTC
Adding Blackb|rd to alpha since nobody in the alpha team can test this, he's in
process of becoming a dev, so there's no problem.
Comment 13 Robert Buchholz (RETIRED) gentoo-dev 2007-12-12 17:19:36 UTC
sorry, a typo above lists ferdy for sparc, while it should be fmccor. Ferris, please excuse me and please test.
Comment 14 Robert Buchholz (RETIRED) gentoo-dev 2007-12-12 17:22:44 UTC
(In reply to comment #11)
> That said, why is ferdy the sparc liaison for security bugs?  As far as I know,
> he is not a sparc user, and he is not a sparc developer, last I knew.  Unless
> you have a good reason not to, please use either me or armin76 as the sparc
> arch contact.

Blame me. Of course, you and Raul are our primary sparc contacts.

Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2007-12-12 17:23:52 UTC
Tobias (Blackb|rd) just tested it and says:
<Blackb|rd> Emerges fine on alpha.
<Blackb|rd> Printing of PDF, PS, TXT works, as does remote printing and printer browsing.

He couldn't post in this bug, dunno why.

So alpha is okay, and ia64 as well.

Thanks Tobias
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2007-12-12 17:44:20 UTC
Works for HPPA.
Comment 17 Markus Rothe (RETIRED) gentoo-dev 2007-12-12 18:46:19 UTC
looks good on ppc64, too.
Comment 18 Tobias Scherbaum (RETIRED) gentoo-dev 2007-12-12 20:02:26 UTC
ppc looks good as well
Comment 19 Robert Buchholz (RETIRED) gentoo-dev 2007-12-13 01:18:39 UTC
Disclosure of this vulnerability has been pushed to Monday, 17.12.
Comment 20 Robert Buchholz (RETIRED) gentoo-dev 2007-12-17 23:42:05 UTC
This is public via http://www.cups.org/str.php?L2589

Printing, please commit this ebuild to the tree with stable keywords for the arches that responded.
Comment 21 Ferris McCormick (RETIRED) gentoo-dev 2007-12-17 23:51:18 UTC
(In reply to comment #13)
> sorry, a typo above lists ferdy for sparc, while it should be fmccor. Ferris,
> please excuse me and please test.
> 

As mentioned in Comment 11, sparc is fine.
Comment 22 Robert Buchholz (RETIRED) gentoo-dev 2007-12-18 21:36:18 UTC
Arches, please test and mark stable net-print/cups-1.2.12-r4.
Target keywords : "alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
Already stabled : "alpha amd64 hppa ia64 ppc ppc64 sparc x86"
Missing keywords: "arm m68k mips s390 sh"
Comment 23 Robert Buchholz (RETIRED) gentoo-dev 2007-12-18 22:29:51 UTC
GLSA 200712-14, thanks everyone.