Bugzilla – Bug 743
segv in sudo_getgrgid when group has no name
Last modified: 2016-06-18 06:00:19 MDT
Created attachment 475 [details] proposed patch currently being tested In certain environments, such as LDAP, a user can end up in a group with no name, in which case sudo will crash. This is caused by the following commit: https://www.sudo.ws/repos/sudo/rev/908b83c3acbb ...which tries to access item->d.gr->gr_name when item->d.gr is NULL. Attached is a minimal fix being tested, but the analysis in the following downstream bug seems to indicate perhaps it shouldn't get cached like that in the first place: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1565567 A distro-specific patch may be exposing the issue.
Thanks for the great analysis. This is fixed by the following commit: https://www.sudo.ws/repos/sudo/rev/1d13341d53ec
Thanks for the fix! :)
Fixed in sudo 1.8.17 which is now available.