[Bug 745339] New: lightdm leaks fds to child processes
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c0 Summary: lightdm leaks fds to child processes Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Security AssignedTo: security-team@suse.de ReportedBy: gber@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 For the initial Debian report (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658678): ----8<---- Package: lightdm Version: 1.0.6-3 Severity: normal Dear Maintainer, lightdm appears to leak several file descriptors to the child process it creates for the session, which propagate to nearly every process running in an interactive session. For example, running ls -l /proc/self/fd from a terminal in X yields lrwx------ 1 amdragon amdragon 64 Feb 4 23:52 0 -> /dev/pts/15 lrwx------ 1 amdragon amdragon 64 Feb 4 23:52 1 -> /dev/pts/15 lr-x------ 1 amdragon amdragon 64 Feb 4 23:52 13 -> pipe:[10098] l-wx------ 1 amdragon amdragon 64 Feb 4 23:52 14 -> pipe:[10098] lr-x------ 1 amdragon amdragon 64 Feb 4 23:52 15 -> pipe:[10099] l-wx------ 1 amdragon amdragon 64 Feb 4 23:52 16 -> pipe:[10099] lrwx------ 1 amdragon amdragon 64 Feb 4 23:52 2 -> /dev/pts/15 lr-x------ 1 amdragon amdragon 64 Feb 4 23:52 3 -> /proc/27874/fd/ lr-x------ 1 amdragon amdragon 64 Feb 4 23:52 4 -> pipe:[9306] l-wx------ 1 amdragon amdragon 64 Feb 4 23:52 5 -> pipe:[9306] l-wx------ 1 amdragon amdragon 64 Feb 4 23:52 6 -> /var/log/lightdm/lightdm.log FDs 4 through 16 were inherited from the lightdm process, as can be seen from its open FDs, $ sudo ls -l /proc/`pidof lightdm`/fd total 0 lrwx------ 1 root root 64 Feb 4 23:54 0 -> /dev/null lrwx------ 1 root root 64 Feb 4 23:54 1 -> /dev/null lr-x------ 1 root root 64 Feb 4 23:54 10 -> pipe:[9315] l-wx------ 1 root root 64 Feb 4 23:54 11 -> pipe:[9315] lrwx------ 1 root root 64 Feb 4 23:54 12 -> socket:[10302] lr-x------ 1 root root 64 Feb 4 23:54 13 -> pipe:[10098] l-wx------ 1 root root 64 Feb 4 23:54 14 -> pipe:[10098] lr-x------ 1 root root 64 Feb 4 23:54 15 -> pipe:[10099] l-wx------ 1 root root 64 Feb 4 23:54 16 -> pipe:[10099] lrwx------ 1 root root 64 Feb 4 23:54 17 -> socket:[10101] lrwx------ 1 root root 64 Feb 4 23:54 2 -> /dev/null lrwx------ 1 root root 64 Feb 4 23:54 3 -> anon_inode:[eventfd] lr-x------ 1 root root 64 Feb 4 23:54 4 -> pipe:[9306] l-wx------ 1 root root 64 Feb 4 23:54 5 -> pipe:[9306] l-wx------ 1 root root 64 Feb 4 23:54 6 -> /var/log/lightdm/lightdm.log lrwx------ 1 root root 64 Feb 4 23:54 7 -> anon_inode:[eventfd] lrwx------ 1 root root 64 Feb 4 23:54 8 -> socket:[8076] lrwx------ 1 root root 64 Feb 4 23:54 9 -> anon_inode:[eventfd] FD 6 is particularly worrisome, as it allows any process to write to the root-owned lightdm log. It might be relevant that I use an .xsession script and Xmonad with no desktop environment. ---->8---- This can be reproduced on the current package in openSUSE 12.1 and Factory. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c1 --- Comment #1 from Guido Berhörster <gber@opensuse.org> 2012-02-06 14:02:41 UTC --- For the record, upstream has been notified and is looking into a fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c2 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com Summary|lightdm leaks fds to child |VUL-0: lightdm: leaks fds |processes |to child processes --- Comment #2 from Marcus Meissner <meissner@suse.com> 2012-02-06 16:34:17 UTC --- yeah, sounds like a security issues (denial of service at least by easy filling the disk) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c3 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium --- Comment #3 from Swamp Workflow Management <swamp@suse.de> 2012-02-06 23:00:12 UTC --- bugbot adjusting priority -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c5 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://launchpad.net/bugs/ | |927060 --- Comment #5 from Guido Berhörster <gber@opensuse.org> 2012-03-05 07:58:03 UTC --- 1.0.9 has been released and fixes this issue. Impact according to upstream is as follows: The leaking file descriptors (7) were: - The lightdm daemon log (write) - The signal pipe used in the daemon to send signal notifications into the GLib main loop (read/write) - could potentially stop the daemon by simulating a SIGTERM. - Two pipes used by the greeter to communicate with the daemon (both read/write). This pipe should be unused by this point (it would have been used to negotiate the session) but I haven't investigated if you could do any damage with it at this point. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c6 --- Comment #6 from Guido Berhörster <gber@opensuse.org> 2012-03-05 22:17:35 UTC --- This has been assigned CVE-2012-1111, updates for Factory and 12.1 have been submitted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-03-06 00:00:09 CET --- This is an autogenerated message for OBS integration: This bug (745339) was mentioned in https://build.opensuse.org/request/show/108060 Factory / lightdm https://build.opensuse.org/request/show/108061 12.1 / lightdm -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:349:moderate -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745339 https://bugzilla.novell.com/show_bug.cgi?id=745339#c8 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Severity|Critical |Normal --- Comment #8 from Ludwig Nussel <lnussel@suse.com> 2012-03-12 14:20:09 CET --- released -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=745339 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:349:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com