Cannot login onto the system using ssh, connection closes immediately, message "comm="sshd" reason="memory violation" sig=31" is seen in the audit log

Solution Verified - Updated -

Issue

  • When trying to login onto a system using ssh, the connection gets closed automatically; ssh -vvv command shows the remote end closes the connection after ssh sent the the Key Exchange request

    $ ssh -vvv <user>@<system>
    [...]
    debug1: kex: client->server aes128-ctr hmac-sha1 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug3: Wrote 24 bytes for a total of 909
    Read from socket failed: Connection reset by peer
    
  • On the server side, a reason="memory violation" sig=31 message can be seen in the audit log

    type=ANOM_ABEND msg=audit([...]): auid=... uid=74 gid=74 ses=... pid=30503 comm="sshd" reason="memory violation" sig=31
    

Environment

  • Red Hat Enterprise Linux 7 and later
    • openssh

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content