CVE-2021-3634
Fixed in a distro release EPSS 5%
A flaw has been found in libssh in versions prior to 0.9.6. The SSH protocol keeps track of two shared secrets during the lifetime of the session. One of them is called secret_hash and the other session_id. Initially, both of them are the same, but after key re-exchange, previous session_id is kept and used as an input to new secret_hash. Historically, both of these buffers had shared length variable, which worked as long as these buffers were same. But the key re-exchange operation can also change the key exchange method, which can be based on hash of different size, eventually creating "secret_hash" of different size than the session_id has. This becomes an issue when the session_id memory is zeroed or when it is used again during second key re-exchange.
Products: libssh, redhat virtualization, redhat enterprise_linux, debian_linux, fedoraproject fedora, oracle mysql_workbench, netapp cloud_backup
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | libssh | 0.9.6-3.el8 |
| AlmaLinux 8 | libssh-config | 0.9.6-3.el8 |
| AlmaLinux 8 | libssh-devel | 0.9.6-3.el8 |
| Arch Linux | libssh | 0.9.6-1 |
| Debian 11 | libssh | 0.9.5-1+deb11u1 |
| Debian 12 | libssh | 0.9.6-1 |
| Debian 13 | libssh | 0.9.6-1 |
| Debian 14 | libssh | 0.9.6-1 |
| Red Hat Enterprise Linux 8 | libssh | 0:0.9.6-3.el8 |
| Red Hat Enterprise Linux 8 | libssh-config | 0:0.9.6-3.el8 |
| Red Hat Enterprise Linux 8 | libssh-debuginfo | 0:0.9.6-3.el8 |
| Red Hat Enterprise Linux 8 | libssh-debugsource | 0:0.9.6-3.el8 |
| Red Hat Enterprise Linux 8 | libssh-devel | 0:0.9.6-3.el8 |
| Rocky Linux 8 | libssh | 0:0.9.6-3.el8 |
| SUSE Enterprise Storage 7.1 | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Micro 5.1 | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Micro 5.2 | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Server 12 SP5 | libssh | 0.9.8-3.12.2 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | libssh | 0.9.8-3.12.2 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | libssh | 0.9.8-150200.13.3.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | libssh | 0.9.8-3.12.2 |
| Ubuntu 20.04 LTS | libssh | 0.9.3-2ubuntu2.2 |
| Ubuntu 22.04 LTS | libssh | 0.9.6-1 |
| openSUSE Tumbleweed | libssh | 0.9.6-1.2 |