Vulnerability DatabaseGHSA-m2w2-wg2f-5p57

GHSA-m2w2-wg2f-5p57: 
Rust vulnerability analysis and mitigation

Summary

handle_remote_open (peeroxide-dht/src/protomux.rs ~L1229) takes the channel id of a remote CTRL_OPEN and pushes None onto the list of remote channels until the list reaches that id, with no bound. An open at id 0xFFFF_FFFF makes the mux grow the list to about 4.3 billion entries (about 240 GB): the allocation fails and the process aborts.

Impact

One encrypted frame of about 10 bytes is enough, from any peer at the other end of a Mux:

  • A blind relay (relay_service) runs a Mux for every client, so anyone with a freshly generated key pair can crash a relay server.
  • A malicious relay can crash every client that pairs through it (hyperdht.rs relay connect, the swarm's create_server_relay_connection). Two smaller issues in the same code let a peer panic its own connection's mux task: handle_remote_reject underflows on id 0 and indexes the local channels without a bounds check, and the CTRL_BATCH length check state.start + len > end can overflow.

Fix

The reported crash, and the panics alongside it:

  • A remote may open a channel only at an id it has used before, or at the next one, as Node's protomux requires. Any other id is an error that ends the mux.
  • Ids the remote has finished with take no memory.
  • A reject for a channel that was never opened, id 0 included, is ignored. It used to panic the mux's task.
  • A batch item with a near-usize::MAX length is an error. Its bounds check used to overflow. Bounds on what a remote can make a Mux hold. These follow Node's pairing model, adapted to a mux that reads on its own task:
  • Unpaired opens: an open that no local channel pairs with is rejected after 1 s. Node rejects it at the end of the tick. While 64 opens are already waiting, a new one is rejected at once.
  • Buffered data: the mux stops reading while it holds more than 32 KiB for unpaired channels, as Node's MAX_BUFFERED. That counts their opens, ids and handshakes as well as their messages, and the mux can stop part way through a batch.
  • Read-ahead: over a split stream, frames read ahead of the mux are held to 1 MiB, or one larger frame. It used to be 16 frames of any size.
  • Batches: batches are decoded item by item rather than all at once.
  • Unread rejects: a remote that leaves 64 KiB of the mux's rejects unread has the mux end. Channel ids are freed as Node frees them, so an id freed and reused can't cross-wire two channels. New API. These additions let an application accept channels on demand, as Node's mux.pair() does:
  • Mux::pair
  • PairListener
  • PairRequest
  • Mux::accept
  • ProtomuxError::NotNextOpen Related hardening of the blind relay service:
  • A connection counts against max_sessions from its handshake, and handshakes are declined at capacity.
  • A client has 20 s to set up its control stream.
  • A session whose channel never opens is ended by the idle sweep.
  • A session's slot is released exactly once.
  • A pairing whose session closes mid-setup is torn down. Fixed in commits 6e2e0cd, 7b072dd, ea2ac21 and 729b506.

Found by

A security review of the fixes for GHSA-4jh8-33j3-h73j, GHSA-48wj-x5q3-ggfq and GHSA-pchg-rmv6-56f4.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-78jj-xfpm-g6pxHIGH7.8
  • JavaScript logoJavaScript
  • alint-dsl
NoYesNov 22, 2026
GHSA-pchg-rmv6-56f4MEDIUMN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-m2w2-wg2f-5p57HIGHN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-4jh8-33j3-h73jHIGHN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-48wj-x5q3-ggfqMEDIUMN/A
  • Rust logoRust
  • peeroxide
NoYesNov 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management