Having a similar problem in Fedora 41 with .NET 8 as I described here
I have resolved it by adding LC_MESSAGES=C
to my /etc/locale.conf
LANG=en_US.UTF-8
LC_MESSAGES=C
As a preliminary test (before changing the locale.conf), I did
giulio@myhome:~$ .dotnet/dotnet --version
stack smashing detected ***: terminated
Aborted (core dumped)
giulio@myhome:~$ export LC_MESSAGES=C
giulio@myhome:~$ .dotnet/dotnet --version
8.0.407