The vulnerability is an unbounded memory allocation (CWE-770) in russh's SSH agent server. When a client sends an ADD_IDENTITY_CONSTRAINED (message type 25) request, the server's Connection::add_key method walks the constraint section byte-by-byte in an unbounded loop. For each SSH_AGENT_CONSTRAIN_CONFIRM (0x02) record, it unconditionally pushed a Constraint::Confirm value into a per-key vector (c.push(Constraint::Confirm)), then permanently stored the resulting (key, timestamp, constraints) triple in the keystore. Because the Constraint enum is 56 bytes and there is no cap on the number of confirm records or keys, a single 256 KiB frame (the only limit, MAX_AGENT_FRAME_LEN) can retain ~12 MiB permanently, and this is renewable across unlimited requests.
The fix commit 23aa5d28fe9601c5bdfe9e60b7ec5d4f882c3de6 changes exactly this line, wrapping the push in a deduplication check (if !c.contains(&Constraint::Confirm)), which confirms add_key is the vulnerable function. The respond method is the dispatcher that routes message type 25 to add_key and is part of the request-handling path. Since this is Rust, profilers show the method name without module paths (e.g., add_key or Connection::add_key).