Bug 136201 - kde-base/kdebase KDM symlink vulnerability (CVE-2006-2449)
Bug#: 136201 Product:  Gentoo Security Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: security@gentoo.org Reported By: jaervosz@gentoo.org
Component: Vulnerabilities
URL:  http://www.kde.org/info/security/advisory-20060614-1.txt
Summary: kde-base/kdebase KDM symlink vulnerability (CVE-2006-2449)
Keywords:  
Status Whiteboard: A3 [glsa] jaervosz
Opened: 2006-06-09 08:16 0000
Description:   Opened: 2006-06-09 08:16 0000
KDE Security Advisory: KDM symlink attack vulnerability
Original Release Date: 2006-06-15
URL: http://www.kde.org/info/security/advisory-20060615-1.txt

0. References
        CVE XXXXX-FIXME


1. Systems affected:

        KDM as shipped with KDE 3.2.0 up to including 3.5.3. KDE 3.1.x and
        older and newer versions than KDE 3.5.3 are not affected. 


2. Overview:

        KDM allows the user to select the session type for login. This
        setting is permanently stored in the user home directory. By
        using a symlink attack, KDM can be tricked into allowing the
        user to read file content that would otherwise be unreadable
        to this particular user. This vulnerability was discovered
        and reported by Ludwig Nussel.


3. Impact:

        KDM might allow a normal user to read the content of /etc/shadow
        or other files, which allows compromising the privacy of another
        user or even the security of the whole system.

4. Solution:

        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.4.0 - KDE 3.5.3 is available from
        ftp://ftp.kde.org/pub/kde/security_patches :

        9daecff07d57dabba35da247e752916a  post-3.5.0-kdebase-kdm.diff

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

        f2e1424d97f2cd18674bef833274c5e3  post-3.3.0-kdebase-kdm.diff

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

        8aa6b41cccca4216c6eb1cf705c2370a  post-3.2.0-kdebase-kdm.diff

------- Comment #1 From Sune Kloppenborg Jeppesen 2006-06-09 08:17:29 0000 -------
Created an attachment (id=88772) [details]
post-3.2.0-kdebase-kdm.diff

------- Comment #2 From Sune Kloppenborg Jeppesen 2006-06-09 08:17:51 0000 -------
Created an attachment (id=88773) [details]
post-3.3.0-kdebase-kdm.diff

------- Comment #3 From Sune Kloppenborg Jeppesen 2006-06-09 08:18:11 0000 -------
Created an attachment (id=88774) [details]
post-3.5.0-kdebase-kdm.diff

------- Comment #4 From Sune Kloppenborg Jeppesen 2006-06-09 08:22:07 0000 -------
Carlo here it was, please provide updated ebuilds. <friendly reminder>Don't
commit anything to Portage yet</friendly reminder>

------- Comment #5 From Carsten Lohrke 2006-06-11 06:26:31 0000 -------
Created an attachment (id=88902) [details]
kdm-3.5.2-r1.ebuild

------- Comment #6 From Carsten Lohrke 2006-06-11 06:26:58 0000 -------
Created an attachment (id=88903) [details]
kdm-3.4.3-r2.ebuild

------- Comment #7 From Carsten Lohrke 2006-06-11 06:35:37 0000 -------
O.k., these are the kdm ebuilds to be tested ( as much as this trivial patch
needs to be tested). I'll commit the corresponding kdebase ebuilds directly to
the tree in time. Please assure you have synced, since I did some changes to
the kde eclasses with regards to patch handling.

------- Comment #8 From Stefan Cornelius (RETIRED) 2006-06-11 06:41:17 0000 -------
arches please test and report back if this is stable. as always: _don't_ commit
to the tree!

------- Comment #9 From Gustavo Zacarias (RETIRED) 2006-06-12 06:50:35 0000 -------
Passing on to weeve, he's our kde mofo and i'm not quite yet feeling good
anyway.

------- Comment #10 From Markus Rothe 2006-06-12 11:33:20 0000 -------
compiles and runs fine on PPC64, even though I'm not sure how to test if
security issue is fixed... guess it just *is*.

------- Comment #11 From Sune Kloppenborg Jeppesen 2006-06-12 23:31:20 0000 -------
Arche Sec Liaisons please note that public disclosure is tomorrow so we are in
a bit of a hurry here.

------- Comment #12 From Jason Wever (RETIRED) 2006-06-13 08:29:46 0000 -------
Tomorrow as in 13 Jun 2006 or 14 Jun 2006?

/me doesn't know what timezone you are in.

------- Comment #13 From Carsten Lohrke 2006-06-13 14:39:46 0000 -------
(In reply to comment #10)
> compiles and runs fine on PPC64, even though I'm not sure how to test if
> security issue is fixed... guess it just *is*.
> 

Formerly KDM was fine with reading ~/.dmrc - as long as it succeeded. A user
could replace his ~/.dmrc with a symlink to another file to get e.g. the
content of /etc/shadow. Looking at the code, this is not possible anymore, but
you can still test of course. :)


(In reply to comment #12)
> Tomorrow as in 13 Jun 2006 or 14 Jun 2006?

14th 16:00 GMT

------- Comment #14 From Jason Wever (RETIRED) 2006-06-13 19:38:24 0000 -------
Looks good on SPARC.  I'm fine with it being keyworded.

------- Comment #15 From Tobias Scherbaum 2006-06-14 04:51:57 0000 -------
Looks also good on ppc.

------- Comment #16 From Carsten Lohrke 2006-06-14 11:48:26 0000 -------
Announcement is out, so the bug can be opened and arch teams cc'ed.


Committed 

kdm-3.4.3-r2
kdm-3.5.2-r1
kdebase-3.4.3-r2
kdebase-3.5.2-r2

with ppc and sparc stable. Other arch teams are asked to follow asap. Thanks.
:)

------- Comment #17 From Sune Kloppenborg Jeppesen 2006-06-14 12:00:25 0000 -------
Arches please test and mark stable asap.

------- Comment #18 From Diego E. 'Flameeyes' Pettenò 2006-06-14 12:19:06 0000 -------
*** Bug 136807 has been marked as a duplicate of this bug. ***

------- Comment #19 From Carsten Lohrke 2006-06-14 14:30:27 0000 -------
Duh, I missed to commit the most important file - the patch. :( It's in cvs
now.

------- Comment #20 From Thomas Cort (RETIRED) 2006-06-14 19:07:19 0000 -------
kdm-3.4.3-r2, kdm-3.5.2-r1, kdebase-3.4.3-r2, and kdebase-3.5.2-r2 stable on
alpha and amd64. Sorry for the delay, this one required quite a bit of
compiling ;)

------- Comment #21 From Markus Rothe 2006-06-15 00:01:05 0000 -------
stable on ppc64

------- Comment #22 From René Nussbaumer 2006-06-17 03:51:29 0000 -------
stable on hppa

------- Comment #23 From Carsten Lohrke 2006-06-17 05:03:51 0000 -------
Didn't want to wait forever on second pair of eyes. Stable on x86.

------- Comment #24 From Sune Kloppenborg Jeppesen 2006-06-17 06:19:43 0000 -------
Thx Carsten.

Ready for GLSA.

Security please review draft.

------- Comment #25 From Sune Kloppenborg Jeppesen 2006-06-22 13:13:17 0000 -------
GLSA 200606-23

ia64,mips don't forget to mark stable to benifit from the GLSA.

------- Comment #26 From Horst Prote 2006-06-23 02:19:33 0000 -------
In this bug report it says "fixed in kdm-3.5.2-r1" but in the GLSA it says
"vulnerable < 3.5.2-r2" and "unaffected >= 3.5.2-r2". Since I can't find an
kdm-3.5.2-r2 in my just synced portage tree, I think it's an typo in the GLSA.

------- Comment #27 From Carsten Lohrke 2006-06-23 15:47:25 0000 -------
As Horst said, the GLSA isn't correct.

------- Comment #28 From Stefan Cornelius (RETIRED) 2006-06-24 07:41:01 0000 -------
Sorry for that, should be fixed in CVS now. Thanks for reporting this.