Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 234099
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
libxml2-2.6.32-CVE-2008-3281.patch libxml2-2.6.32-CVE-2008-3281.patch patch Robert Buchholz 2008-08-06 15:53 0000 1.63 KB Details | Diff
libxml2-2.6.32-r1.ebuild libxml2-2.6.32-r1.ebuild text/plain Gilles Dartiguelongue 2008-08-06 22:55 0000 3.57 KB Details
libxml2-2.6.32-CVE-2008-3281.patch libxml2-2.6.32-CVE-2008-3281.patch patch Robert Buchholz 2008-08-14 12:54 0000 8.22 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 234099 depends on: 235529 239346 Show dependency tree
Bug 234099 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: 2008-08-06 15:51 0000
** Please note that this issue is CONFIDENTIAL and no information should be
disclosed until it is made public, see "Whiteboard" for a date **

Josh Bressers writes:
Andreas Solberg discovered a denial of service flaw in libxml2.  This flaw
leads to recursive evaluation of entities, the result being an exhaustion
of memory and CPU usage.

------- Comment #1 From Robert Buchholz 2008-08-06 15:53:02 0000 -------
Created an attachment (id=162368) [details]
libxml2-2.6.32-CVE-2008-3281.patch

------- Comment #2 From Gilles Dartiguelongue 2008-08-06 22:55:19 0000 -------
Created an attachment (id=162398) [details]
libxml2-2.6.32-r1.ebuild

don't know what the +/- 3 trick vs +/- 1 is, but builds fine and doesn't seem
to cause problems to apps linked to it.

------- Comment #3 From Robert Buchholz 2008-08-06 23:20:56 0000 -------
Arch Security Liaisons, please test the attached ebuild and report it stable on
this bug.
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"

CC'ing current Liaisons:
   alpha : yoswink, armin76
   amd64 : keytoaster, tester
    hppa : jer
     ppc : dertobi123
   ppc64 : corsair
   sparc : fmccor
     x86 : maekke, armin76

------- Comment #4 From Jeroen Roovers 2008-08-07 04:33:16 0000 -------
HPPA is OK.

------- Comment #5 From Markus Rothe 2008-08-07 05:27:13 0000 -------
looks good on ppc64

------- Comment #6 From Ferris McCormick 2008-08-07 11:38:46 0000 -------
Looks good on sparc for stable, does fine with
USE=test FEATURES=test

(One test expected 11 failures but got 10; I'm not going to worry about that.)

------- Comment #7 From Raúl Porcel 2008-08-07 17:54:23 0000 -------
alpha/ia64 looks okay

------- Comment #8 From Markus Meier 2008-08-07 20:53:19 0000 -------
looks good on amd64/x86.

------- Comment #9 From Robert Buchholz 2008-08-14 12:54:34 0000 -------
Created an attachment (id=162889) [details]
libxml2-2.6.32-CVE-2008-3281.patch

The prior patch is incomplete, upstream proposes this new version.

------- Comment #10 From Robert Buchholz 2008-08-14 13:19:42 0000 -------
Furthermore, the embargo deadline has been extended to Aug. 20.

Arch liaisons, please test once more with the new patch, and same ebuild.

------- Comment #11 From Ferris McCormick 2008-08-14 14:47:46 0000 -------
Tests are all good on sparc.

------- Comment #12 From Tobias Scherbaum 2008-08-15 18:53:36 0000 -------
(In reply to comment #10)
> Furthermore, the embargo deadline has been extended to Aug. 20.
> 
> Arch liaisons, please test once more with the new patch, and same ebuild.
> 

still looks good for ppc

------- Comment #13 From Jose Luis Rivero (yoswink) 2008-08-16 03:04:35 0000 -------
Still looks ok for alpha

------- Comment #14 From Markus Rothe 2008-08-16 06:10:05 0000 -------
looks good on ppc64, too.

------- Comment #15 From Raúl Porcel 2008-08-16 11:05:48 0000 -------
Still looks good on ia64/x86

------- Comment #16 From Jeroen Roovers 2008-08-16 16:02:10 0000 -------
HPPA is still OK.

------- Comment #17 From Tobias Heinlein 2008-08-18 19:25:59 0000 -------
Fine on amd64.

------- Comment #18 From Robert Buchholz 2008-08-21 00:23:42 0000 -------
now public, please commit.

------- Comment #19 From Mart Raudsepp 2008-08-22 16:08:42 0000 -------
Ebuild is in tree now. CCing remaining architectures

------- Comment #20 From Mart Raudsepp 2008-08-23 12:54:14 0000 -------
This actually breaks gnome-base/gdm greeter (these should be themes in XML
files) loading and renders gdm completely broken... Works with 2.6.32-r0,
breaks with 2.6.32-r1 that I committed

------- Comment #21 From Mart Raudsepp 2008-08-23 13:52:16 0000 -------
Adding the bug for the gdm issue as a dependency

------- Comment #22 From Mart Raudsepp 2008-08-23 15:04:54 0000 -------
I have package.masked libxml-2.6.32-r1, that includes the security patch, until
the gdm issue is sorted out.
gdm not working is a worse DoS than a chance of the other possible DoS that the
patch is supposed to fix.

------- Comment #23 From Christian Hoffmann 2008-08-23 15:15:21 0000 -------
Back to [upstream] waiting for a better working fix then...

------- Comment #24 From Ian Abbott 2008-08-23 19:01:00 0000 -------
Shouldn't the fix have included a SONAME change due to the addition of members
to structures passed between the library and its callers?

------- Comment #25 From Christian Hoffmann 2008-08-25 10:47:57 0000 -------
(In reply to comment #24)
> Shouldn't the fix have included a SONAME change due to the addition of members
> to structures passed between the library and its callers?
Probably yes, but apparently noone thought of this / has seen this.

Some updates (from oss-sec), Nico Golde pointed to [1] which says that
rebuilding the affected packages (only librsvg known until now) should solve
this. Not that nice for a security update though...

He also pointed to [2] which has a different patch which avoids breaking
compatibility of the public headers.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496125#79
[2] https://bugzilla.redhat.com/show_bug.cgi?id=459830 (currently down)

------- Comment #26 From Christian Hoffmann 2008-08-25 23:21:24 0000 -------
(In reply to comment #25)
> (In reply to comment #24)
> Some updates (from oss-sec), Nico Golde pointed to [1] which says that
> rebuilding the affected packages (only librsvg known until now) should solve
> this. Not that nice for a security update though...
Ok, according to oss-sec, some more packages are affected:
  gnome-base/librsvg (as already noted)
  app-misc/strigi
  net-news/liferea (1.4.16b has been tested)
  dev-lang/php USE=xml (5.2.6 has been tested)
  x11-libs/qt-webkit (4.4.0 has been tested)

So, requring zero-change version bumps of these packages and putting DEPENDs as
necessary does not sound like a too good idea, maybe we should really wait for
the new patch to be tested appropriately.


------- Comment #27 From Mart Raudsepp 2008-08-26 05:35:20 0000 -------
(In reply to comment #26)
> So, requring zero-change version bumps of these packages and putting DEPENDs as
> necessary does not sound like a too good idea, maybe we should really wait for
> the new patch to be tested appropriately.

Yes, I will not allow an ABI break without soname bump in anyhow - security or
not, ABI stability is important in GNOME world. Was a mistake I didn't notice
that the patch breaks ABI before putting it in.

------- Comment #28 From Robert Buchholz 2008-08-30 14:41:09 0000 -------
Mart, what's your plan to resolve this issue?

------- Comment #29 From Mart Raudsepp 2008-09-25 01:28:43 0000 -------
It turns out upstream restored the ABI before release of 2.7.0 and there was
some blindness from my part by not noticing this in SVN or release changes, and
the fact not being mentioned in any of the upstream bugs I monitored or looked
at.
libxml2-2.7.1 is now in the tree and includes an ABI compatible fix for this
security bug and also security bug 237806.
Arches, please give it a good spin and stable. A list of packages that
shouldn't break when compiled against libxml2-2.6.32 and ran against
libxml2-2.7.1 is in comment #26, plus check you can still log in via gdm-2.20.x
after making sure it restarted.

------- Comment #30 From Jeroen Roovers 2008-09-25 13:49:28 0000 -------
Stable for HPPA.

------- Comment #31 From Ferris McCormick 2008-09-25 14:20:59 0000 -------
Sparc stable, tests look good.

------- Comment #32 From Markus Rothe 2008-09-27 15:35:49 0000 -------
ppc64 stable

------- Comment #33 From Raúl Porcel 2008-09-27 16:37:51 0000 -------
alpha/ia64/x86 stable

------- Comment #34 From Markus Meier 2008-09-28 12:31:53 0000 -------
amd64 stable

------- Comment #35 From Tobias Scherbaum 2008-10-01 17:15:19 0000 -------
ppc stable

------- Comment #36 From Tobias Heinlein 2008-10-01 21:26:16 0000 -------
GLSA request filed.

------- Comment #37 From Christian Weiske 2008-10-02 12:43:28 0000 -------
Do I see this right that the issue should be fixed in libxml-2.7.1? I still
have it, just try download http://tmp.cweiske.de/manual.xml and run "xmllint
manual.xml"

------- Comment #38 From Ian Abbott 2008-10-02 13:59:09 0000 -------
(In reply to comment #37)
> Do I see this right that the issue should be fixed in libxml-2.7.1? I still
> have it, just try download http://tmp.cweiske.de/manual.xml and run "xmllint
> manual.xml"

Same here.  I see you've already reported it upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=554660

------- Comment #39 From Christian Hoffmann 2008-10-02 14:44:39 0000 -------
Back to [upstream] for the second time then (I can reproduce the issue as well,
btw).

------- Comment #40 From Robert Buchholz 2008-10-02 16:52:19 0000 -------
(In reply to comment #37)
> Do I see this right that the issue should be fixed in libxml-2.7.1? I still
> have it, just try download http://tmp.cweiske.de/manual.xml and run "xmllint
> manual.xml"

Let's handle this new issue in bug 239346, back to [glsa] for this issue.

------- Comment #41 From Robert Buchholz 2008-12-02 17:46:23 0000 -------
GLSA 200812-06

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug