Skip to content

x/crypto/ssh: prevent DoS on deadlocked established channel #81317

Closed

Description

@thatnealpatel

Previously, after a channel has been established, a
malicious peer could send crafted messages that would
deadlock the entire connection.

Now, we handle all RFC 4254 channel messages; global
requests are handled explicitly. Then, treat all other
messages as a protocol error and tear the connection
down instead of buffering and blocking.

Thanks to Will Mortensen for reporting this issue.

This is CVE-2026-56855 and Go issue https://go.dev/issue/81317.


This was originally a PRIVATE tracked in http://b/553514673.

Activity

  1. gopherbot commented on Sep 2, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/826524 mentions this issue: ssh: reject unexpected message types on established channels

  2. changed the title [-]security: fix CVE-2026-56855[/-] [+]x/crypto/ssh: prevent DoS on deadlocked established channel[/+] on Sep 2, 2026
  3. added a commit that references this issue on Sep 2, 2026
    86efde5
  4. added this to the Unreleased milestone on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions