[Bug 1918876] [NEW] sudo segfaults when /etc/sudoers has syntax error

Owen Healy 1918876 at bugs.launchpad.net
Fri Mar 12 06:52:07 UTC 2021


Public bug reported:

If /etc/sudoers contains the following (syntactically invalid) line:

    %sudo   ALL=(ALL:ALL) NOPASSWD ALL

the sudo command will segfault:

    $ sudo true
    [1]    12958 segmentation fault (core dumped)  sudo true

A better result would be to fail or warn with a syntax error.

Release: groovy
Architecture: amd64
sudo version: 1.9.1-1ubuntu1.1

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1918876

Title:
  sudo segfaults when /etc/sudoers has syntax error

Status in sudo package in Ubuntu:
  New

Bug description:
  If /etc/sudoers contains the following (syntactically invalid) line:

      %sudo   ALL=(ALL:ALL) NOPASSWD ALL

  the sudo command will segfault:

      $ sudo true
      [1]    12958 segmentation fault (core dumped)  sudo true

  A better result would be to fail or warn with a syntax error.

  Release: groovy
  Architecture: amd64
  sudo version: 1.9.1-1ubuntu1.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1918876/+subscriptions



More information about the foundations-bugs mailing list