CVE Deep Dive : CVE-2025–26466
OpenSSH versions 9.5p1 through 9.9p1 queue a pong response in memory for every SSH2_MSG_PING packet received before authentication, and these queued packets are only freed after key exchange completes. An unauthenticated attacker can send a continuous stream of ping packets without ever completing key exchange, causing unbounded memory and CPU consumption that can make the SSH service unresponsive.
medium.com
Published on medium.com
The vulnerability was introduced in August 2023, shortly before the release of OpenSSH 9.5p1. OpenSSH’s handling of SSH2MSGPING packets (type 192) during the pre-authentication phase contains a critical flaw : for each ping packet received, the server allocates a pong response packet in memory and queues it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the pre-authentication ping handler queues an unbounded number of pong responses that are only released after key exchange, so a client that never completes key exchange causes uncontrolled resource consumption.
Impact
A single unauthenticated attacker could exhaust memory and CPU and make the SSH service unresponsive, potentially locking administrators out; the text notes that mitigations such as MaxStartups, LoginGraceTime and PerSourcePenalties can limit the effect.
What the attacker needed
Network access to the SSH port; Target runs OpenSSH 9.5p1 to 9.9p1; No authentication required
The fix
The issue was fixed in OpenSSH 9.9p2, which adds rate limiting on pre-authentication messages, bounded queue sizes and early connection termination for abuse.
How it was found
- Establish a TCP connection to the SSH server.
- Complete the initial SSH protocol version exchange.
- Send a continuous stream of SSH2_MSG_PING packets (type 192).
- The server allocates pong responses in a queue without limit.
- Memory and CPU consumption increase until the server becomes unresponsive and legitimate connections fail.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SSH is the usual way administrators log in to remote servers. Before a user logs in, the server still processes some network messages, and in the affected versions it kept a reply to every 'ping' message in memory until login finished. An attacker could send many pings and never log in, so the server's memory and processor use grew until legitimate administrators could no longer connect.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.