🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5935

Bug#1154725: sudo segfault

#5935
From: Vincas Dargis
Date: Tue, 24 Nov 2026 14:20
32 lines
3690 bytes
I believe I have similar crash since latest security update.

It seems sudoers.so crashes with empty environment:

```
# env -i /usr/bin/sudo -n -H -u www-data  --  /usr/bin/true
Segmentation fault
```

```
# journalctl -f -k -n0
Nov 24 16:14:37 dev kernel: sudo[3478274]: segfault at 0 ip 00007f872049fdc9 sp 00007ffd0a37ada0 error 4 in 
sudoers.so[34dc9,7f8720476000+68000] likely on CPU 2 (core 2, socket 0)
Nov 24 16:14:37 dev kernel: Code: f6 bf 06 00 00 00 4c 8b b8 40 0f 00 00 e8 4f 6a fd ff 48 89 c7 4c 89 fe e8 e4 a9 fe ff 
59 5e 41 89 c7 84 c0 0f 84 07 05 00 00 <4c> 8b 33 48 89 1d 35 2b 07 00 4d 85 f6 74 65 0f 1f 84 00 00 00 00
```

But this works:

```
# sudo -n -H -u www-data -- /usr/bin/true
```

Maybe using `evn -i` is overkill in my use case, IDK. It is used in wrapper script allowing pgagent (PostgreSQL-based 
"Cron") to execute some script as www-data.

My sudoers:


```
pgagent ALL=(www-data) NOPASSWD: NOSETENV: /usr/local/bin/mynamespace-myapp-run-cli-command.sh ^[A-Za-z0-9_-]+$
```
Technical Details
Message-ID: <O2Zxf-dTad-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O1ZSF-dkMS-1@gated-at.bofh.it> <O1ZSF-dkMS-1@gated-at.bofh.it> <O1ZSF-dkMS-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Vincas Dargis <vindrg@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154725: sudo segfault
Date: Tue, 24 Nov 2026 15:20:01 +0100
Message-ID: <O2Zxf-dTad-1@gated-at.bofh.it>
References: <O1ZSF-dkMS-1@gated-at.bofh.it> <O1ZSF-dkMS-1@gated-at.bofh.it> <O1ZSF-dkMS-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 14:19:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.548
Reply-To: Vincas Dargis <vindrg@gmail.com>, 1154725@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sudo@packages.debian.org
X-Debian-Pr-Message: followup 1154725
X-Debian-Pr-Package: sudo
X-Debian-Pr-Keywords: upstream confirmed
X-Debian-Pr-Source: sudo
X-Gm-Message-State: APuU4Z+NNjj93Wii7qZ/r5NQ2RX/jK7xddEJjIdkcJcRVonV6+3McaGU
	ud9juxWCfqV474QTDzdnsISf2gZOmVlgcSwqdJ0Pzzglt6GShRHVmAot1CXB9pgBJH0=
X-Gm-Gg: AZFdTZejwqWVv/0Ey63lscCTm7MkgFRVK8531Dh7ATF/45kfd10QhO5CnHTrupBJZGn
	Dv8F0TnAwXFXIxerJ2osqHTNECg/on2UGfIjAsOqf1uHhE5PqVlfMSUpowsUeJKq2RPJywlupwf
	ukb/rAIOxmWlIkUQCQBpdgWwon2ErYFSRggm5Tic/0G5VPNgG56/X2wecVlz6UGXx2VRD94QSQw
	rg5fmYSFlcAKLpZUL9Dvz4nFxXMPGXL7nXKS5DpaG1tZmDq0/XIv0fVGTQ4c1uA/SrZBv8SUEMf
	GomCEx+cd/FJhPaeAWE8T1t4Zeza2VwSXBd9bUO5ieVMA+Vtz0DDmVY0Sm/WjQELVso/jlSUpGL
	isJHDSZzOAZZVZX080+a9BVlqayJA5DSv77M1F5fZe4GQgri5mORdoztd0l4A35qkXkO9RS57X+
	eXjnTRA7i+jMalH+D/2gh3959vcIK0n4hkLApfDWvcTmOH72/XzupljLSUzB4n7lPXVZkIVg2dH
	5hUPR6KYckOx0w1uR1Yjnrh/Bej0AdePS/vDyA+zLhRsWzpm/ItaamEv5et9tVBFG4k94igNZ2j
	sgElBUlJ2zeEYX/dX8dI7qP4Y1o=
X-Received: by 2002:a05:600c:4f16:b0:4a2:47:b79c with SMTP id 5b1f17b1804b1-4bb8882a66emr339067235e9.32.1795529821948;
        Tue, 24 Nov 2026 06:17:01 -0800 (PST)
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: lt-LT, en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004681
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 32
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 24 Nov 2026 16:17:00 +0200
X-Original-Message-ID: <a41d20c6-27a7-4636-a567-f4961a839ee7@gmail.com>
X-Original-References: <E1xUrgW-000000004v4-02oq@mx2.net9.pw> <E1xUrgW-000000004v4-02oq@mx2.net9.pw> <E1xUrgW-000000004v4-02oq@mx2.net9.pw>