Since 15.4 getting 100's of cron *** stack smashing detected ***: terminated

This crontab has not changed for 12 years - I have run every script as root with no errors and they all take a few thousands of a second to execute.

Should I open a bugzilla on this?

Jul 15 17:49:01 VM1 cron[4521]: *** stack smashing detected ***: terminated
Jul 15 17:49:01 VM1 cron[4520]: *** stack smashing detected ***: terminated
Jul 15 17:50:01 VM1 cron[4524]: *** stack smashing detected ***: terminated
Jul 15 17:50:01 VM1 cron[4525]: *** stack smashing detected ***: terminated
# crontab -l
5 3,9,15,21 * * * /bin/bash -c /usr/bin/freshclam 1>/tmpx/freshclam 2>&1
*/15 * * * * /root/bin/fixdate 1>>/tmpx/fixdate.log 2>&1
*/1 * * * * /root/bin/fixdconf 1>>/tmpx/fixdconf.log 2>&1
*/1 * * * * /root/bin/ssh_ip_ban 1>/tmpx/ssh_ip_ban.log 2>&1
6 2 * * 0 /root/bin/mkipset 1>/tmpx/mkipset.log 2>&1

I just checked my Tumbleweed, Mint, Ubuntu and Manjaro Linux and they are not logging that error with the exact same crontab entries.

I do not see these errors so you first need to find out what part of your crontab is causing it.

every entry is causing the error.

I have tried everything and opened a bugzilla.

I suspect that an upgrade since rebooting 25 days ago may be the problem - the one machine I rebooted last night to test a different OS and disk is not doing that after I put the original disk back and rebooted.

Solved

Corrected with a reboot - I believe that the libc update was the cause.

Same thing here after I did zypper up on Jul 17 00:11:24 without reboot (was not required):

lost:~ # journalctl -b -u cron.service
-- Logs begin at Thu 2022-05-19 16:21:23 EEST, end at Mon 2022-07-18 12:20:32 EEST. --
Jul 07 14:43:57 lost systemd[1]: Started Command Scheduler.
Jul 07 14:43:57 lost cron[7004]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 91% if used.)
Jul 07 14:43:58 lost cron[7004]: (CRON) INFO (running with inotify support)
Jul 17 00:33:02 lost cron[30104]: *** stack smashing detected ***: terminated
Jul 17 01:33:01 lost cron[10364]: *** stack smashing detected ***: terminated
Jul 17 02:33:01 lost cron[19327]: *** stack smashing detected ***: terminated
…

Same issue but with OpenSUSE 15.3.


systemctl status cron
● cron.service - Command Scheduler
     Loaded: loaded (/usr/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-03-14 09:42:45 PDT; 4 months 9 days ago
   Main PID: 1199 (cron)
      Tasks: 1 (limit: 4915)
     CGroup: /system.slice/cron.service
             └─1199 /usr/sbin/cron -n


Jul 23 07:40:01 lair cron[1817]: *** stack smashing detected ***: terminated
Jul 23 07:50:01 lair cron[32521]: *** stack smashing detected ***: terminated
Jul 23 08:00:01 lair cron[30504]: *** stack smashing detected ***: terminated
Jul 23 08:10:01 lair cron[28689]: *** stack smashing detected ***: terminated
Jul 23 08:20:01 lair cron[25810]: *** stack smashing detected ***: terminated
Jul 23 08:24:01 lair cron[5604]: *** stack smashing detected ***: terminated
Jul 23 08:30:01 lair cron[23953]: *** stack smashing detected ***: terminated
Jul 23 08:40:01 lair cron[22112]: *** stack smashing detected ***: terminated
Jul 23 08:50:01 lair cron[20267]: *** stack smashing detected ***: terminated
Jul 23 09:00:01 lair cron[18448]: *** stack smashing detected ***: terminated