Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2021 15:21:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258537] security/sudo: sudo 1.9.8 Segmentation Fault when compiled with LDAP support
Message-ID:  <bug-258537-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258537

            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 wh=
en
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 tryi=
ng
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 h=
ave
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258537-7788>