Minimized test case:
(for i in {1..5}; do echo "FOO"; sleep 1; done) & sudo sleep 5
Running this show FOO outputs in staircases.
As soon as I enter the passwords in sudo, it changes stty -a outputs in the background process.
icrnl is one of them.
Tested on Ubuntu 25.04 with Sudo version 1.9.17p2.
Also applies to Ubuntu 22.04 and 24.04 but not on 20.04.