KDM local DoS with user images

Bug #176347 reported by Jonathan Riddell
6
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Fix Released
Undecided
Unassigned
Dapper
Fix Released
Undecided
Unassigned
Edgy
Fix Released
Undecided
Unassigned
Feisty
Fix Released
Undecided
Unassigned
Gutsy
Fix Released
Undecided
Unassigned
Hardy
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kdebase

        A regular user with a valid account is able to make login via KDM
        impossible. A regular user can also cause KDM to exceed the
        system resource limits.

        KDM can be tricked into hanging or eating memory by reading from
        special files (pipes or symlinks to devices), big or sparse files
        created in the users home directory.

        A regular user with a valid account is able to prepare his home
        directory in a way that will make login via KDM impossible for
        any user if KDM's user list display is enabled and users are
        permitted to add their own images. Given that the account can be
        identified easily, this issue is only sensitive for high
        security environments.

Related branches

Revision history for this message
Jonathan Riddell (jr) wrote :

kdebase (4:3.5.8-2ubuntu5) hardy; urgency=low

  * Add kubuntu_9914_kdm_user_image_check.diff from upstream
    fixes potential KDM local DoS if users set an invalid image
    Closes LP: #176347

 -- Jonathan Riddell <email address hidden> Fri, 14 Dec 2007 12:24:17 +0000

Changed in kdebase:
status: New → Fix Released
Revision history for this message
Jonathan Riddell (jr) wrote :
Revision history for this message
Jonathan Riddell (jr) wrote :
Revision history for this message
Jonathan Riddell (jr) wrote :
Revision history for this message
Jonathan Riddell (jr) wrote :
Revision history for this message
Jonathan Riddell (jr) wrote :

Uploaded to *-proposed

Patch is from upstream, although there is no upstream bug entry.

Recreate by settings KDM face image to a file and changing that file to a huge file or a pipe.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test.

Changed in kdebase:
status: New → Fix Committed
status: New → Fix Committed
status: New → Fix Committed
status: New → Fix Committed
Revision history for this message
Jonathan Riddell (jr) wrote :

you can test this with

mkfifo ~/.face.icon

and seeing if kdm still works

Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've tried to reproduce this with dapper and gutsy but both works fine what i did was: installed kdm and then test with the command Jonathan commented (mkfifo ~/.face.icon) but i see no changes on KDM, is there something else that should be installed or update the test case? thanks.

Revision history for this message
Jonathan Riddell (jr) wrote :

You also need to uncomment #FaceSource=PreferUser in /etc/kde3/kdm/kdmrc

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks Jonathan that worked. Verification done:

- Test on dapper (4:3.5.2-0ubuntu27.2), edgy (4:3.5.5-0ubuntu3.6), feisty (4:3.5.6-0ubuntu20.7) and gutsy (4:3.5.8-0ubuntu2), after uncomment the FaceSource line at kdmrc, execute "mkfifo ~/.face.icon" and logout the KDM is on an unusable state.

- Test with the proposed packages on dapper (4:3.5.2-0ubuntu27.3),edgy (4:3.5.5-0ubuntu3.7), feisty (4:3.5.6-0ubuntu20.8), gutsy (4:3.5.8-0ubuntu2.1). After following the test case and uncommented again the FaceSource line at kdmrc, execute the "mkfifo ~/.face.icon" and logout of the system, the KDM screen is shown and I'm able to use it, the bug has gone. Thanks you.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to *-updates.

Changed in kdebase:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.