Critical Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


A critical flaw in the Netkit Telnet server can give remote attackers root access to vulnerable Ubuntu, Kali Linux, and Debian systems without a password. Security researcher Liad Levy disclosed the flaw, tracked as CVE-2026-141380, on OSS-Security on December 2.

Levy assigned a CVSS 3.1 score of 9.8 to the path that allows remote code to run as root. The disclosure also identifies an affected Netkit package on Gentoo.

An open Telnet port alone is not enough to gain root access. Both paths Levy described require the attacker to reach a vulnerable Telnet server and be able to write a file on the target.

That matters for defenders: a file-write flaw elsewhere on the same host could turn limited access into full control, even if the attacker doesn’t know a valid password. The disclosure reports successful tests, not confirmed attacks in the wild.

Netkit Telnet Flaw Bypasses Login

The flaw traces back to a Debian patch that changed how Netkit telnetd handles environment variables, which are settings programs pass to one another. During the initial connection setup, the server accepts settings marked as user-defined without checking them against its normal list of allowed settings.

The remote client controls that label. A privileged helper then forwards those settings to the system login program before the user has proved who they are.

The result depends on how Telnet runs. When the service starts as root, the login program can load attacker-controlled code with full system privileges. Running the service under a less privileged account blocks that route, but Levy found that the login program in util-linux 2.40 or later can still be made to skip its normal checks.

This is not the same as the passwordless Telnet access used by the Kairos botnet, where attackers logged in with an empty password. Here, the flaw can bypass the password check itself.

Levy reported confirming passwordless root access on Debian 13 “Trixie,” Ubuntu 25.04 and 25.10, and Kali Linux Rolling. The disclosure identifies Debian’s Netkit-based telnetd and telnetd-ssl packages and Gentoo’s net-misc/netkit-telnetd.

Debian 11 “Bullseye” also accepts the untrusted settings, but its stock util-linux 2.36 lacks the login feature involved in the second path. The installed package, login version, and service configuration matter more than the distribution name alone.

Identify which Telnet server is installed and where it is reachable. Disable it if it is not needed, and use SSH for remote administration. If a legacy system must keep Telnet, restrict access to trusted management hosts and verify that TCP port 23 is not reachable from untrusted networks.

Cyber Security News’ coverage of a separate Telnet flaw on TCP port 23 shows why defenders should account for attacks that begin before a login prompt.

Levy proposed restoring strict checks on client-supplied settings or filtering what the privileged helper passes to the login program. Those proposals are not a released patch.

Check your distribution’s security notices for an update that explicitly names CVE-2026-141380 and covers the installed Netkit package.

A fix for CVE-2026-28372 in GNU Inetutils does not fix Netkit. Until a fix is confirmed, keep affected services off untrusted networks rather than relying on password strength alone.

Provide SOC With the Latest Threat Context from 16K Sources to Quickly Stop Incidents

The post Critical Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords appeared first on Cyber Security News.