[Bug 258537] security/sudo: sudo 1.9.8 Segmentation Fault when compiled with LDAP support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Sep 2021 15:21:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258537 Bug ID: 258537 Summary: security/sudo: sudo 1.9.8 Segmentation Fault when compiled with LDAP support Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: garga@FreeBSD.org Reporter: draenan@gmail.com Flags: maintainer-feedback?(garga@FreeBSD.org) Assignee: garga@FreeBSD.org (sudo 1.9.8, compiled with LDAP support on FreeBSD 12.2-RELEASE-p10.) When compiled with LDAP support sudo 1.9.8 produces a segmentation fault when running a command (eg "sudo ls"). Invocations such as "sudo -l" or "sudo -U <username> -l" where <username> is a user in LDAP work fine, it's just trying to run an actual command that ends in the segfault. I tried a debug compile of sudo. This indicates that SIGSEGV is occurring at match.c:401:29 in the "cmnd_matches" function. The GUI function of LLDB suggests that this may be because "c" is set to "0x0000000000000000". (I'm absolutely not an expert at debugging; the above is pretty much what I was able to figure out via a Google search, so I'm afraid I can't really provide further help unless you can provide some clear steps for me to follow.) I recompiled without LDAP support and "sudo ls" works as expected. There have been some updates to the OpenLDAP port lately, so I don't know if this is an OpenLDAP issue or Sudo, but I do know that I can log in as a user from LDAP without issue, I just can't run sudo as that user. -- You are receiving this mail because: You are the assignee for the bug.