← Lab /Security & privacy

Pre-auth RCE in GNU inetutils Telnetd via 32-year-old LINEMODE overflow

CVE-2026-32746 allows an unauthenticated attacker to achieve remote code execution on vulnerable Telnetd servers.

Security & privacy watchTowr Labs 19 Mar 2026 Disclosure Prototype evidence

Published as “A 32-Year-Old Bug Walks Into A Telnet Server (GNU inetutils Telnetd CVE-2026-32746 Pre-Auth RCE)”

Why it matters

Patch or rebuild inetutils telnetd from a commit that includes the fix to eliminate the pre-auth RCE risk.

Summary

The researchers discovered a BSS-based buffer overflow in the LINEMODE SLC handler of GNU inetutils telnetd (CVE-2026-32746) that can corrupt about 400 bytes of adjacent memory. They analyzed the overflow constraints, showing that exploitation on 64-bit x86 systems is extremely difficult and that they could not achieve a reliable RCE on any tested binary. They built a detection artifact generator that probes the LINEMODE feature and can leak heap pointers, but no functional exploit was released. The vulnerability affects many distributions and BSD variants, and upstream has not yet shipped a fixed release.

What they found 2

  1. CVE-2026-32746 is a BSS-based buffer overflow that allows corruption of roughly 400 bytes of adjacent variables.

    “CVE-2026-32746, discovered by the DREAM Security Research Team, is a BSS-based buffer overflow that allows an attacker to corrupt roughly 400 bytes of adjacent variables.”

  2. The vulnerable slcbuf buffer is 0x6C bytes, limiting overflow to the immediate 0x190 bytes of adjacent memory.

    “The data that we send must fit into a single Telnet ‘subnegotiation’ packet, which is 0x200 bytes. The slcbuf variable itself, which we overflow, is sized at 0x6C bytes. It already contains four header bytes, which is fortunate, but this restricts us to overwriting the immediate 0x190 bytes.”

Caveats 3

  • We didn’t find a direct route to exploitation on any of the systems we observed, though we did observe varying degrees of exposure.
  • exploitation on 64-bit x86 systems was significantly more difficult than on other systems due to the constraints we’ve enumerated above.
  • The inetutils project hasn’t actually released a fixed version of their software (at least at the time of publishing).

What’s new here 4

  • Identification of a BSS buffer overflow in GNU inetutils telnetd's LINEMODE SLC handler (CVE-2026-32746).
  • Analysis of exploitation constraints, including alignment issues and limited payload size.
  • Development of a detection artifact generator that can probe for the vulnerability and leak heap information.
  • Catalog of affected platforms spanning Linux distributions, BSDs, and embedded systems.