[Bug 1565567] Re: segv in sudo_getgrgid
1565567 at bugs.launchpad.net
Sat May 7 21:02:53 UTC 2016
For the record, I did not intend to edit the status of this as recorded
above and am unable to revert it. That's embarrassing, sorry. I was
simply looking to see if there was more info about when this might be
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
segv in sudo_getgrgid
Status in sudo:
Status in sudo package in Ubuntu:
Status in sudo source package in Xenial:
In certain environments, for example when using LDAP, users can end up
in a group with no name. When that happens, sudo crashes when
attempting to look up the group name for the debug log.
Upstream has commited a simple fix for this issue, it has been
commited to Yakkety, and uploaded to Xenial.
I currently don't know an easy way to reproduce this, it is
environment-specific. A package containing the fix was successfully
tested in the problematic environment.
A regression in the patch would prevent users from using sudo. The
risk of regression is low since the patch only changes the debug log.
If the user is in a group with no name (because libnss-db got removed
and the group was defined there, for example...) then:
the call to sudo_debug_printf in sudo_getgrgid
(plugins/sudoers/pwutil.c, line 462) causes a SEGV when trying to get
item->d.gr->gr_name (since item->d.gr is NULL).
To manage notifications about this bug go to:
More information about the foundations-bugs