[ GLSA 202601-01 ] inetutils: Remote Code Execution

[email protected] Mon, 26 Jan 2026 10:24:29 -0000
Newsgroups gmane.linux.gentoo.announce
Message-ID <176942306947.7.5266533841579574760@3f85d36892cf>
--===============7449117797289121272==
Content-Type: text/plain; charset="utf-8"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 202601-01
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                           https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Severity: High
    Title: inetutils: Remote Code Execution
     Date: January 26, 2026
     Bugs: #969065
       ID: 202601-01

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

A vulnerability has been discovered in the telnetd module of inetutils,
which allows remote code execution as root.

Background
==========

Inetutils is a collection of common network programs including a telnet
client and server.

Affected packages
=================

Package             Vulnerable    Unaffected
------------------  ------------  ------------
net-misc/inetutils  < 2.7         >= 2.7

Description
===========

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.

Impact
======

An attacker can login as root via the telnetd daemon.

Workaround
==========

Reinstall inetutils with the telnetd USE flag disabled. This is the
default in Gentoo.

Resolution
==========

All inetutils users with the telnetd USE flag enabled should upgrade to
the latest version:

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=net-misc/inetutils-2.7"

References
==========

[ 1 ] CVE-2026-24061
      https://nvd.nist.gov/vuln/detail/CVE-2026-24061

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

 https://security.gentoo.org/glsa/202601-01

Concerns?
=========

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
[email protected] or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2026 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5
--===============7449117797289121272==
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpqTA6ABLMxh/aChGFMQkOaVy+9kFAml3QN0ACgkQFMQkOaVy
+9mlfA/9EDfhKYa1382j8mjMnWRC/DQ/d4DDpyn+IhN859Nl/YzjWNXS5ydg9CyL
wHdrCynJI0sElFx/AFJnzs4Jd1bp16yhUq1un3cNHFxnPFCDkiojUtPvGUKv985Y
vI6Bf44dhwcN1dw1FmFP455+fLAB9RRMQTgl6JTFB0wgo0yMZhR1++qr57Uiqqy8
QEjTkyU3gp6+INKfskKs+rbz5DBsK8if4jGC1LK2NvxskggYc61J/YlSIBb/tJBj
LFNxlQltjFZiSyGh4eJXottaazTQgiQShNbXL6wVhpwxFV8Cj6vDvPxCs4ZiEfrn
/0SxqoiK5/1JTcLqoRePfmFtgAUHs+0ZLKQMjdlLOX1ywabf4LUN8hQlgBmJGBi6
qHubPMBV+Pvr5hJVJBmnBPLDiWUt8Z+pDQBNE7TvltcHMcuiZ7ocOpRYt4P+RsjK
CdxX22ds+bk37yEwHmOnnxxM+OWiQQtPIIMoVLSCHQgeWW4ZMz6GhbZzzAVkFgcw
Fsz4QSQL9Fzffp+Iv+4ucQLZ48e03UzYaUOl+FVpYAyMPxaeqskMef3Ozgk+VM5h
IY0TRA8BjOF4WKbxR9jRt3Isf95UZniv6kLDk9DnKQg4Vlps8AhnIEDRRzr2UgLl
H4tzbZdNPik2MkPd8u2iB9FAViNw5EMjRfTGJb3kBAsBGL6N1pk=
=0+5H
-----END PGP SIGNATURE-----

--===============7449117797289121272==--