Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83814 - kde-base/kdelibs Local DCOP DoS (Vendor-Sec) (CAN-2005-0396)
Summary: kde-base/kdelibs Local DCOP DoS (Vendor-Sec) (CAN-2005-0396)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Security
URL: http://www.kde.org/info/security/advi...
Whiteboard: A3 [glsa] jaervosz
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 07:00 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2006-03-23 19:34 UTC (History)
4 users (show)

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


Attachments
post-3.3.2-kdelibs-dcop.patch (post-3.3.2-kdelibs-dcop.patch,1.86 KB, patch)
2005-03-02 07:05 UTC, Sune Kloppenborg Jeppesen (RETIRED)
no flags Details | Diff
post-3.2.3-kdelibs-dcop.patch (post-3.2.3-kdelibs-dcop.patch,1.86 KB, patch)
2005-03-02 07:05 UTC, Sune Kloppenborg Jeppesen (RETIRED)
no flags Details | Diff
kdelibs-3.3.2-r6.ebuild (kdelibs-3.3.2-r6.ebuild,3.41 KB, text/plain)
2005-03-13 08:31 UTC, Carsten Lohrke (RETIRED)
no flags Details
post-3.3.2-kdelibs-idn.patch (post-3.3.2-kdelibs-idn.patch,4.53 KB, patch)
2005-03-13 08:32 UTC, Carsten Lohrke (RETIRED)
no flags Details | Diff
post-3.3.2-kdelibs-idn.patch-5106.out (post-3.3.2-kdelibs-idn.patch-5106.out,10.14 KB, text/plain)
2005-03-13 08:58 UTC, Markus Rothe (RETIRED)
no flags Details
kdelibs-3.3.2-r7.ebuild (kdelibs-3.3.2-r7.ebuild,3.40 KB, text/plain)
2005-03-15 08:49 UTC, Markus Rothe (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-02 07:00:35 UTC
Disclosure date: 14:00 CET March 16, 2005

KDE Security Advisory: Local DCOP denial of service vulnerability
Original Release Date: 20050316
URL: http://www.kde.org/info/security/advisory-20050316-1.txt

0. References
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0396


1. Systems affected:

        All KDE version prior to KDE 3.4 on systems where multiple users
        have access.


2. Overview:

        Sebastian Krahmer of the SUSE LINUX Security Team reported a local
        denial of service vulnerability in KDE's Desktop Communication
        Protocol (DCOP) daemon better known as dcopserver.

        A local user can lock up the dcopserver of arbitrary other users
        on the same machine by stalling the DCOP authentication process.

        Although it is not possible to by pass the authentication process
        this way, it can cause a significant reduction in desktop
        functionality for the affected users.

        The Common Vulnerabilities and Exposures project (cve.mitre.org)
        has assigned the name CAN-2005-0396 to this issue.

      
3. Impact:

        A local user can lock up the dcopserver of arbitrary other users
        on the same machine. This can cause a significant reduction in
        desktop functionality for the affected users including, but not
        limited to, the inability to browse the internet and the inability
        to start new applications.


4. Solution:

        Upgrade to KDE 3.4.

        For older versions of KDE Source code patches have been made
        available which fix these vulnerabilities. Contact your OS vendor /
        binary package provider for information about how to obtain updated
        binary packages.


5. Patch:

        A patch for KDE 3.1.x is available from
        ftp://ftp.kde.org/pub/kde/security_patches

        377c49d8224612fbf09f70f3c09d52f5  post-3.1.5-kdelibs-dcop.patch

        A patch for KDE 3.2.x is available from
        ftp://ftp.kde.org/pub/kde/security_patches

        0948701bffb082c65784dc8a2b648ef0  post-3.2.3-kdelibs-dcop.patch

        A patch for KDE 3.3.x is available from
        ftp://ftp.kde.org/pub/kde/security_patches

        7309e259ae1f29be08bbb70e580da3fb  post-3.3.2-kdelibs-dcop.patch


6. Time line and credits:

        21/02/2005 KDE Security informed by SUSE LINUX.
        21/02/2005 Patches applied to KDE CVS.
        02/03/2005 Vendors notified
        16/03/2005 KDE Security Advisory released.
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-02 07:05:10 UTC
Created attachment 52457 [details, diff]
post-3.3.2-kdelibs-dcop.patch
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-02 07:05:36 UTC
Created attachment 52458 [details, diff]
post-3.2.3-kdelibs-dcop.patch
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-02 07:06:56 UTC
Caleb, please attach an updated ebuilds.
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-03-07 10:04:09 UTC
Adding carlo to cc:
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2005-03-07 10:05:21 UTC
Sorry, was a busy weekend for me.  Carlo, can you take care of the patches?
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-07 10:36:51 UTC
Caleb: O.k. with me. It's not time yet, anyways. Just wasn't sure about the last announcement, which mentions the idn issue and wanted to fathom, which patches could make it into 2005.0 (wolf31o2 said the release guys won't wait), so Koon pointed me here.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-13 08:31:18 UTC
Created attachment 53344 [details]
kdelibs-3.3.2-r6.ebuild
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-13 08:32:34 UTC
Created attachment 53345 [details, diff]
post-3.3.2-kdelibs-idn.patch
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-13 08:39:11 UTC
corsair, kingtaco: post-3.3.2-kdelibs-idn.patch fixed Bug 81110. I think doing 3.3.2 should suffice, but I thought about marking libidn-0.5.13 stable and additionally with these two bugs it's better to have some more testing going on. Thanks for your help! :)
Comment 10 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-13 08:44:28 UTC
kingtaco and corsair, please remember just to post your results back to this bug. Nothing can go into the tree until the 16th.
Comment 11 Mike Doty (RETIRED) gentoo-dev 2005-03-13 08:54:14 UTC
adding cryos as he's our main amd64 kde guy
Comment 12 Markus Rothe (RETIRED) gentoo-dev 2005-03-13 08:58:40 UTC
Created attachment 53349 [details]
post-3.3.2-kdelibs-idn.patch-5106.out

That idn won't apply: (I'm on ppc64 to test)

G5 ~ # emerge kdelibs -u  
Calculating dependencies ...done!
>>> emerge (1 of 1) kde-base/kdelibs-3.3.2-r6 to /
>>> md5 src_uri ;-) kdelibs-3.3.2.tar.bz2
>>> Unpacking source...
>>> Unpacking kdelibs-3.3.2.tar.bz2 to /var/tmp/portage/kdelibs-3.3.2-r6/work
 * Applying post-3.3.2-kdelibs-kio.diff ...				  [ ok
]
 * Applying post-3.3.2-kdelibs-htmlframes2.patch ...			  [ ok
]
 * Applying post-3.3.2-kdelibs-kioslave.patch ...			  [ ok
]
 * Applying kdelibs-3.3.2-aspell-dir.patch ...				  [ ok
]
 * Applying kdelibs-3.3.2-anchor-fix.patch ...				  [ ok
]
 * Applying kde3-dcopidlng.patch ...					  [ ok
]
 * Applying post-3.3.2-kdelibs-idn.patch ...

 * Failed Patch: post-3.3.2-kdelibs-idn.patch!
 * 
 * Include in your bugreport the contents of:
 * 
 *  
/var/tmp/portage/kdelibs-3.3.2-r6/temp/post-3.3.2-kdelibs-idn.patch-5106.out


!!! ERROR: kde-base/kdelibs-3.3.2-r6 failed.
!!! Function epatch, Line 397, Exitcode 0
!!! Failed Patch: post-3.3.2-kdelibs-idn.patch!
!!! If you need support, post the topmost build error, NOT this status message.


G5 ~ #
Comment 13 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-03-13 09:59:05 UTC
I get the same failure and same post-3.3.2-kdelibs-idn.patch-5106.out as corsair in the previous comment.
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-15 08:07:25 UTC
Sorry guys. The patch provided by upstream was (at least in part) against branch, not release and I did not notice that epatch omits patches when read permissions are missing, instead to die. Futhermore, I used http://www.shmoo.com/idn/ as test site and it showed me punycode and a warning that the ssl cert doen't match the site, so I thought everything is fine (I mean it is for my KDE 3.3 install, but I have no idea why. *sigh*).

#81110 isn't important and changing the diffs from branch to release didn't work (konqueror shows me some odd warning "unknown host www.theshmo"), so I guess there are some other files missing as well, so please test w/o this invalid patch.
Comment 15 Markus Rothe (RETIRED) gentoo-dev 2005-03-15 08:49:26 UTC
Created attachment 53543 [details]
kdelibs-3.3.2-r7.ebuild

I've recently made a revision bump to 3.3.2-r6.. :-/

That version includes an upstream patch which was already applied to upstream
CVS, so it should be save to apply it on all archs. The result is that next
kdelibs will be -r7 and not -r6. Sorry for irritation..

-r7 (with post-3.3.2-kdelibs-dcop.patch but NOT post-3.3.2-kdelibs-idn.patch)
compiles and works just fine on ppc64. =)
Comment 16 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-15 23:01:50 UTC
KDE is -r7 ready for general testing? If that is the case please be ready to commit so arches can be called later today when this goes public.
Comment 17 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-16 03:52:15 UTC
This is now public-> opening.

Note from upstream wrt idn:

ATTENTION: Please note that post-3.3.2-kdelibs-idn.patch has changed wrt the 
version that was attached to the preliminary advisory to fix a regression 
(KDE BR101558) that was discovered this morning. The new version has been 
attached for your convenience.
Comment 18 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-16 04:35:34 UTC
<<< kdelibs-3.3.2-r7.ebuild
<<< kdelibs-3.2.3-r8.ebuild

herds, please go - the idn issue will be handled seperate
Comment 19 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-03-16 09:35:31 UTC
kdelibs-3.3.2-r7.ebuild stable on amd64. You want both stable? Just compiling my 3.2 again as I had removed it. It could take a while...
Comment 20 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-16 10:31:06 UTC
Marcus: On the one hand 3.2.x is keyworded ia64, 3.3.x is not, on the other amd64 is a official supported archtecture and not all users may have updated yet. If multiple arch herds say that they can't support the last two stable major releases, it'd be better to advise ~3.3 for everyone, though.
Comment 21 Markus Rothe (RETIRED) gentoo-dev 2005-03-16 11:30:16 UTC
stable on ppc64
Comment 22 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-03-16 12:25:38 UTC
Stable on ppc.
Comment 23 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-03-16 14:12:02 UTC
I had to backport the 2005.0 symlink needed by our new profile, but other than that kdelibs-3.2.3-r8.ebuild works just fine and is now marked stable.
Comment 24 Hardave Riar (RETIRED) gentoo-dev 2005-03-17 01:00:03 UTC
Stable on mips.
Comment 25 Jason Wever (RETIRED) gentoo-dev 2005-03-17 05:31:19 UTC
Stable on SPARC.
Comment 26 Bryan Østergaard (RETIRED) gentoo-dev 2005-03-18 15:32:54 UTC
Alpha stable.
Comment 27 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-03-19 02:01:04 UTC
GLSA 200503-22

hppa, ia64 please remember to mark stable to benifit from the GLSA.
Comment 28 René Nussbaumer (RETIRED) gentoo-dev 2005-06-26 06:21:29 UTC
Already stable on hppa