russh: peer-declared zero maximum packet size permanently stalls channel writes (silent AsyncWrite hang)
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| rust:russh | >= 0.60.0, <= 0.64.1 | 0.65 |
A peer can advertise maximum packet size = 0 in its channel-open message (CHANNEL_OPEN when attacking a server, CHANNEL_OPEN_CONFIRMATION when attacking a client). russh accepts the value without validation and copies it into the channel write state, where it caps the size of every outgoing data chunk. In the AsyncWrite code path (ChannelTx::poll_writable, used by Channel::data(), Channel::make_writer() and Channel::into_stream()), a cap of 0 makes every write future stay Poll::Pending forever:…
Read on GitHub Advisory Database
On 10/31/2026, 07:58 AM, GitHub Advisory Database published "russh: peer-declared zero maximum packet size permanently stalls channel writes (silent AsyncWrite hang)" (type: Advisory). Severity is "Medium" (medium). Related technologies: Rust. CVE: CVE-2026-116774.