SecurityOnlineDo Son
Netkit Telnetd flaw enables pre-auth root access on Linux
Part of the CVE-2026-141380 story · since 2 Dec
- Wed 2 Dec, 16:01 UTC. SecurityOnline, first report. Netkit Telnetd flaw enables pre-auth root access on Linux. This article, 1st of 1.
Liad Levy disclosed CVE-2026-141380, a pre-auth remote code execution flaw in netkit telnetd with a CVSS 9.8, affecting Debian, Ubuntu, Kali, and Gentoo deployments that still run telnetd or telnetd-ssl. The security issue arises from a patch (Debian’s 124-support_uservar.diff) that builds netkit telnetd 0.17 with -DACCEPT_USERVAR, allowing any CLIENT-provided USERVAR to bypass the environment whitelist during Telnet option negotiation.
Levy demonstrated end-to-end root shells on Debian 13, Ubuntu 25.04/25.10, and Kali rolling, though he notes no confirmed wild exploitation at press time and no public PoC script yet. The vendor-facing takeaway is that many legacy Linux hosts remain at elevated risk because the root patch dates back to 2015, leaving open ports 23 exposed on test labs, appliances and older systems.
The attack hinges on two routes to pre-auth root access. First, if the service runs as root (for example Gentoo’s xinetd setup), glibc can honour an injected LD_PRELOAD path, causing a root-level shared library to execute inside /bin/login before any login prompt. Second, when the service runs as non-root (Debian’s default), glibc strips LD_* vars but CREDENTIALS_DIRECTORY can pass through; on hosts with util-linux 2.40+ and a login[.]noauth file, PAM checks can be bypassed and a root shell drops in.
Debian 11 (bullseye) is noted as affected by the injection itself, while Gentoo’s netkit-telnetd runs with root by default via xinetd. Patches remain pending; the suggested mitigations are to stop or remove telnetd and use SSH, or, if Telnet must remain, to block TCP port 23 or limit access to trusted networks. Maintainers are advised to revert the is_uservar bypass in suboption() or drop ACCEPT_USERVAR, and to tighten the environment whitelist in telnetlogin.
How the story developed
1 article from 1 outlet since 2 Dec. Still developing; the latest report was 7 hours ago. This was the first report.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, first report. Netkit Telnetd flaw enables pre-auth root access on Linux. This article, 1st of 1.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 1 articles as a listHide the list
- Wed 2 DecDay 01
- Netkit Telnetd flaw enables pre-auth root access on Linux16:01 · SecurityOnline · First report · This article, 1st of 1