Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130979 - x11-base/xorg-x11 mis-computation of buffer size (CVE-2006-1526)
Summary: x11-base/xorg-x11 mis-computation of buffer size (CVE-2006-1526)
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: http://lists.freedesktop.org/archives...
Whiteboard: A1 [glsa] jaervosz
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 09:19 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2007-05-31 10:55 UTC (History)
9 users (show)

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


Attachments
xrender-mitri.diff (xrender-mitri.diff,793 bytes, patch)
2006-04-23 09:23 UTC, Sune Kloppenborg Jeppesen (RETIRED)
no flags Details | Diff
modular patch (CVE-2006-1526-xrender-mitri.patch,819 bytes, patch)
2006-04-23 23:28 UTC, Donnie Berkholz (RETIRED)
no flags Details | Diff
monolith patch (CVE-2006-1526-xrender-mitri.patch,833 bytes, patch)
2006-04-23 23:29 UTC, Donnie Berkholz (RETIRED)
no flags Details | Diff
xorg-x11-6.8.2-r7.ebuild (xorg-x11-6.8.2-r7.ebuild,53.94 KB, text/plain)
2006-04-23 23:29 UTC, Donnie Berkholz (RETIRED)
no flags Details
xorg-x11-6.9.0-r1.ebuild (xorg-x11-6.9.0-r1.ebuild,52.21 KB, text/plain)
2006-04-23 23:29 UTC, Donnie Berkholz (RETIRED)
no flags Details
xorg-server-1.0.2-r4.ebuild (xorg-server-1.0.2-r4.ebuild,5.59 KB, text/plain)
2006-04-23 23:30 UTC, Donnie Berkholz (RETIRED)
no flags Details
xorg-server-1.0.99.901-r2.ebuild (xorg-server-1.0.99.901-r2.ebuild,7.83 KB, text/plain)
2006-04-23 23:30 UTC, Donnie Berkholz (RETIRED)
no flags Details
xcb-build.diff (xcb-build.diff,1.68 KB, patch)
2006-04-24 09:06 UTC, Donnie Berkholz (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 09:19:22 UTC
Bart Massey, a X.Org user reported that "When running rendertest from
XCB xcb/xcb-demo, the Xorg X server crashes partway through.  100%
reproducible on a wide variety of graphics architectures".

Analyzing the bug Eric Anholt found out that a typo in render/mitri.c
causes the X render extension to mis-calculate the size of a
buffer, leading to an overflow, which can problably be exploited by 
clients of the X server on most systems.

This is Freedesktop.org bugzilla #6642. It has been marked confidential, 
  after the security implications of the problem were identified.

X.Org releases 6.8.0 and later are affected by this bug. Previous 
versions (and XFree86 versions) are not affected.
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 09:23:42 UTC
Created attachment 85279 [details, diff]
xrender-mitri.diff

Upstream patch.
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 09:26:07 UTC
Donnie please advise on severity and attach an updated ebuild to this bug. We will call Arch Security Liaisons to test. Do NOT commit anything yet.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 12:47:11 UTC
For severity, you can just read the description. Buffer overflow, probably exploitable by X clients (any X-using program).

I'll be pushing out a new 6.8.2-r7, 6.9-r1 and xorg-server 1.0.2 and 1.0.99.901-r2. Ah, the joys of so many parallel ebuilds.

Testers will probably want to test either 6.8.2 or 1.0.2, current stable and ~arch. Ebuilds coming today or tomorrow.
Comment 4 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 13:07:35 UTC
Thx Donnie, just remember don't commit the updates to Portage just yet:-)
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 13:37:28 UTC
You didn't need to tell me the first time, let alone a second. I don't really appreciate being treated like I'm clueless.
Comment 6 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 21:52:32 UTC
To be on the safe side I'd rather say it too often. This was obviously too often. I was just not sure after reading your comment #3, OTOH you've handled stuff like this before and I should have remembered. Sorry about that.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:28:40 UTC
Created attachment 85322 [details, diff]
modular patch
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:29:02 UTC
Created attachment 85323 [details, diff]
monolith patch
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:29:25 UTC
Created attachment 85325 [details]
xorg-x11-6.8.2-r7.ebuild
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:29:43 UTC
Created attachment 85326 [details]
xorg-x11-6.9.0-r1.ebuild
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:30:04 UTC
Created attachment 85327 [details]
xorg-server-1.0.2-r4.ebuild
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:30:21 UTC
Created attachment 85328 [details]
xorg-server-1.0.99.901-r2.ebuild
Comment 13 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-23 23:46:05 UTC
Thx Donnie.

Arch Security Liaisons please test and report back on this bug.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-23 23:55:25 UTC
I've confirmed the fix no longer crashes the server. Although the rendertest client crashes now, that's a separate issue.
Comment 15 Thomas Cort (RETIRED) gentoo-dev 2006-04-24 03:19:49 UTC
(In reply to comment #14)
> I've confirmed the fix no longer crashes the server. Although the rendertest
> client crashes now, that's a separate issue.

I'm running xorg-x11-6.8.2-r6 on amd64 and I'd like to be able to confirm this. I tried checking out xcb-demo from cvs because it appears that xcb-demo isn't in portage. The cvs version fails on ./configure, it says:

    checking for XCB... configure: error: Package requirements (xcb) 
        were not met: No package 'xcb' found

and I have x11-misc/xcb-2.4 installed. Any hints?

http://webcvs.freedesktop.org/xcb/xcb-demo/
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xcb co xcb-demo
Comment 16 Markus Rothe (RETIRED) gentoo-dev 2006-04-24 04:10:59 UTC
I have compile tested xorg-x11-6.8.2-r7 and xorg-server-1.0.2-r4 on PPC64 now.

they compile just fine, but unfortunately I don't have access to the bug on fd.o bugzilla, so I don't know how to trigger this bug. Is there a testcase?
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-24 09:05:41 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > I've confirmed the fix no longer crashes the server. Although the rendertest
> > client crashes now, that's a separate issue.
> 
> I'm running xorg-x11-6.8.2-r6 on amd64 and I'd like to be able to confirm this.
> I tried checking out xcb-demo from cvs because it appears that xcb-demo isn't
> in portage. The cvs version fails on ./configure, it says:
> 
>     checking for XCB... configure: error: Package requirements (xcb) 
>         were not met: No package 'xcb' found
> 
> and I have x11-misc/xcb-2.4 installed. Any hints?

X Cut Buffers != X C Bindings

XCB is no longer maintained in CVS, it's in git. You'll need to install stuff in roughly this order: xcb-proto, xcb, xcb-util, xcb-demo.
Comment 18 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-24 09:06:27 UTC
Created attachment 85366 [details, diff]
xcb-build.diff

This hacky patch fixes the build of xcb-util and xcb-demos.
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-24 09:07:44 UTC
(In reply to comment #16)
> I have compile tested xorg-x11-6.8.2-r7 and xorg-server-1.0.2-r4 on PPC64 now.
> 
> they compile just fine, but unfortunately I don't have access to the bug on
> fd.o bugzilla, so I don't know how to trigger this bug. Is there a testcase?

As mentioned in comment #0, rendertest from xcb/xcb-demo is the testcase. http://xcb.freedesktop.org/wiki/ has all the info.
Comment 20 Gustavo Zacarias (RETIRED) gentoo-dev 2006-04-24 15:44:13 UTC
Adding Ferris since he's our xorg man in the sparc team.
Comment 21 Ferris McCormick (RETIRED) gentoo-dev 2006-04-24 16:14:16 UTC
Um, for me, repoman hates -r6.
Comment 22 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-24 16:35:09 UTC
There's no -r6 anywhere on this bug, so it's a little unclear what you're talking about.
Comment 23 Mark Loeser (RETIRED) gentoo-dev 2006-04-24 20:37:38 UTC
Seems fine to me. (x86)
Comment 24 Thomas Cort (RETIRED) gentoo-dev 2006-04-25 06:15:42 UTC
Seems fine to me. (amd64) 

Comment 25 René Nussbaumer (RETIRED) gentoo-dev 2006-04-25 13:10:15 UTC
Looks good on hppa
Comment 26 Gustavo Zacarias (RETIRED) gentoo-dev 2006-04-25 15:06:32 UTC
Looks good on sparc 2.6/ati-pci.
Comment 27 Ferris McCormick (RETIRED) gentoo-dev 2006-04-27 06:52:34 UTC
sparc with 2.6 kernel/sunffb video driver builds and seems fine when using xorg-server-1.0.99.901-r2 + the modular patch.
Comment 28 Thierry Carrez (RETIRED) gentoo-dev 2006-04-28 11:00:03 UTC
Still missing test reports from alpha, ppc and ppc64 teams
Comment 29 Bryan Østergaard (RETIRED) gentoo-dev 2006-04-28 13:14:08 UTC
cc'ign ferdy on behalf of alpha.
Comment 30 Fernando J. Pereda (RETIRED) gentoo-dev 2006-04-30 13:54:12 UTC
Looks ok on Alpha.
Comment 31 Tobias Scherbaum (RETIRED) gentoo-dev 2006-04-30 16:21:02 UTC
6.8.2-r7 looks good on ppc
Comment 32 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-01 07:13:17 UTC
ppc64 please test and report back, disclosure date is tomorrow. 
Comment 33 Markus Rothe (RETIRED) gentoo-dev 2006-05-01 14:14:39 UTC
sorry for being late. looks good on ppc64.
Comment 34 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-01 21:11:52 UTC
Thx Markus.

Security please review draft GLSA so we can release on time.
Comment 35 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-02 09:50:20 UTC
Opening since it is public now.

Donnie/someone with commit rights please commit the ebuilds, GLSA is ready.
Comment 36 Joshua Baergen (RETIRED) gentoo-dev 2006-05-02 10:36:12 UTC
Ebuilds committed.
Comment 37 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-02 10:42:05 UTC
Thx Joshua.

This one is ready for GLSA. Let's give the mirrors a chance to sync before sending the GLSA.
Comment 38 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-05-02 11:25:31 UTC
Thx everyone.

GLSA 200605-02