The telnetd server invokes /usr/bin/login (normally running as root)
passing the value of the USER environment variable received from the
client as the last parameter.
If the client supply a carefully crafted USER environment value being
the string "-f root", and passes the telnet(1) -a or --login parameter
to send this USER environment to the server, the client will be
automatically logged in as root bypassing normal authentication
processes.
This happens because the telnetd server do not sanitize the USER
environment variable before passing it on to login(1), and login(1) uses
the -f parameter to by-pass normal authentication.
[ 1 ] CVE-2026-24061
https://nvd.nist.gov/vuln/detail/CVE-2026-24061
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/202601-01
style>.gentoo_availability{display:block;}
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.
Get the latest Linux and open source security news straight to your inbox.
Reinstall inetutils with the telnetd USE flag disabled. This is the
default in Gentoo.