Bugzilla – Bug 970
sudo_sendlog crashes with non-existing or invalid key or cert
Last modified: 2021-09-11 15:59:05 MDT
To reproduce: -bash-5.0$ rm a -bash-5.0$ /usr/sbin/sudo_sendlog -k a -c /etc/ssl/sudo/certs/logsrvd_cert.pem -p 30344 -n /tmp/x Connected to localhost:30344 Segmentation Fault (core dumped) -bash-5.0$ pstack core core 'core' of 22658: /usr/sbin/sudo_sendlog -k a -c /etc/ssl/sudo/certs/logsrvd_cert.pem -p 00007fda4f166c78 OPENSSL_sk_dup () + 38 00007fda4e878917 SSL_new () + 117 000000000041957c main () + f6c 0000000000412084 ???????? () Reproducible: always This is on Solaris 11.4, amd64
The crash is fixed by https://www.sudo.ws/repos/sudo/rev/5fbadce88524 There are also some pending commits that will improve the error messages when the certificate, key or CA bundle are invalid.
Fixed in sudo 1.9.7