🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Vincas Dargis Tue, 24 Nov 2026 14:20
Bug#1154725: sudo segfault
#5935
Author: 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_-]+$
```
Bug#1154725: sudo segfault
#5936
Author: Vincas Dargis
Date: Tue, 24 Nov 2026 14:30
11 lines
3166 bytes
workaround in my case is:

```
env -i TZ= /usr/bin/sudo -n -H -u www-data  --  /usr/bin/true
```

or:

```
env -i TZ=Europe/Vilnius /usr/bin/sudo -n -H -u www-data  --  /usr/bin/true
```
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads