Description
libssh 0.9.4 has a NULL pointer dereference in tftpserver.c if ssh_buffer_new returns NULL.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libssh | 0.9.5-1 | — |
| Debian 13 | libssh | 0.9.5-1 | — |
| Debian 12 | libssh | 0.9.5-1 | — |
| Debian 9 | libssh | 0.7.3-2+deb9u3 | DLA-2303-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libssh | 0.9.3-2ubuntu2.1 | USN-4447-1 |
| Ubuntu 18.04 LTS | libssh | 0.8.0~20170825.94fa1e38-1ubuntu0.7 | USN-4447-1 |
| Ubuntu 16.04 LTS | libssh | 0.6.3-4.3ubuntu0.6 | USN-4447-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | libssh +2 | 0.9.4-3.el8 | RHSA-2021:4387 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhev Hypervisor 4 | redhat-virtualization-host +1 | 4.4.9-202111172338_8.5 | RHSA-2021:4750 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | libssh-devel | 0.9.4-3.el8 | ALSA-2021:4387 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libssh | 0.9.4-3.el8 | RLSA-2021:4387 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLES 15 SP2 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLES 12 SP5 | libssh | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLES for SAP 15 SP2 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLES for SAP 12 SP5 | libssh | 0.9.8-3.12.2 | SUSE-SU-2024:0539-1 |
| SLE Micro 5.2 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLE Micro 5.1 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLE HPC 15 SP3 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SLE HPC 15 SP2 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
| SUSE Enterprise Storage 7.1 | libssh | 0.9.8-150200.13.3.1 | SUSE-SU-2024:0525-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libssh | 0.9.6-1.2 | openSUSE-SU-2024:10998-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libssh | 0.9.5-r0 | — |
| Alpine v3.23 | libssh | 0.9.5-r0 | — |
| Alpine v3.22 | libssh | 0.9.5-r0 | — |
| Alpine v3.21 | libssh | 0.9.5-r0 | — |
| Alpine v3.20 | libssh | 0.9.5-r0 | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libssh | 0.9.5-r0 | — |
| Alpine v3.18 | libssh | 0.9.5-r0 | — |
| Alpine v3.17 | libssh | 0.9.5-r0 | — |
| Alpine v3.16 | libssh | 0.9.5-r0 | — |
| Alpine v3.15 | libssh | 0.9.5-r0 | — |
| Alpine v3.14 | libssh | 0.9.5-r0 | — |
| Alpine v3.13 | libssh | 0.9.5-r0 | — |
| Alpine v3.12 | libssh | 0.9.4-r1 | — |
| Alpine v3.11 | libssh | 0.9.4-r1 | — |
| Alpine v3.10 | libssh | 0.8.9-r1 | — |
| Alpine v3.9 | libssh | 0.7.6-r3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | libssh +2 | 0.9.4-3.el8 | ELSA-2021-4387 |
Advisories 12
- ALSA-2021:4387 Low: libssh security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:4750 Red Hat Security Advisory: Red Hat Virtualization Host security and bug fix update [ovirt-4.4.9] 0-day Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2021:4387 Red Hat Security Advisory: libssh security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-4447-1 libssh vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-2303-1 libssh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2021:4387 Low: libssh security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2024:10998-1 libssh-config-0.9.6-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0539-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0525-1 Security update for libssh SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3377 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- WID-SEC-2024-0438 libssh: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · May 7, 2024
- ELSA-2021-4387 Low: libssh security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 16, 2021
References
- https://bugs.libssh.org/T232
- https://bugs.libssh.org/rLIBSSHe631ebb3e2247dd25e9678e6827c20dc73b73238
- https://gitlab.com/libssh/libssh-mirror/-/merge_requests/120
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2303-1] libssh security update mailing-list
- USN-4447-1 vendor-advisory
- FEDORA-2020-f4f5e49cb8 vendor-advisory
- FEDORA-2020-ac3e29073f vendor-advisory
- GLSA-202011-05 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html