Debian LightDM Vulnerability Allows Privilege Escalation
A privilege escalation vulnerability in Debian's LightDM display manager allows escalation from the lightdm user to root, with partial mitigation efforts underway.
LinuxOperating systemsVulnerabilitiesKey points
- A privilege escalation vulnerability in Debian's LightDM allows escalation from the lightdm user to root.
- The issue is linked to shared GTK modules and potential code execution through unverified GtkModule origins.
- A 2001-related proof of concept exists but is not directly applicable.
- Partial mitigation includes removing a Debian-specific patch and adding an AppArmor profile.
A privilege escalation vulnerability in Debian's LightDM display manager has been addressed in Security Advisory 6633-1. The flaw allows escalation from the lightdm user to root, according to Debian Security Advisory 6633-1. The vulnerability was discovered by Matko Zlatić and is related to how GTK modules are shared across GTK greeters. Specifically, a GTK process may execute code under a different UID if GtkModule is not checked for origin. While the issue does not use $GTK_MODULES, it relies on Xsettings instead. The vulnerability was partially mitigated by removing a Debian-specific patch that moved USERS_DIR to /var/lib/lightdm. However, the issue remains unresolved due to LightDM running as root. As a hardening measure, an AppArmor profile was added to lightdm-gtk-greeter. A 2001-related proof of concept exists but is not directly applicable. The vulnerability requires community effort to fully resolve.
What to do
- Review and apply Debian Security Advisory 6633-1 to address the vulnerability.
- Ensure that the AppArmor profile for lightdm-gtk-greeter is properly configured.
- Monitor for updates related to full resolution of the vulnerability, as community effort is required.
- Evaluate whether additional hardening measures are needed for LightDM configurations.
Original report
“Local Privilege Escalation in Debian with LightDM and GTK greeters”
Posted by Yves-Alexis Perez on Nov 16 Hi there, I've just released Debian Security Advisory 6633-1 [0] fixing a local privilege escalation from the lightdm user to root in LightDM (a login manager, similar to GDM or KDM). Matko Zlatić actually found a whole escalation from currently logged in user to root (initially under Kali but it applies to Debian and Ubuntu as well). I'll let Matko chime in…
Also reported by
- oss-security: Re: Local Privilege Escalation in Debian with LightDM and GTK greeters
- oss-security: Re: Local Privilege Escalation in Debian with LightDM and GTK greeters