A flaw exists in libssh, a library implementing the SSH protocol. During the key exchange (KEX) process, an allocation failure within cryptographic functions can result in a NULL pointer dereference, potentially causing the client or server to crash.