Description
A missing allocation check in sftp server processing read requests may cause a NULL dereference on low-memory conditions. The malicious client can request up to 4GB SFTP reads, causing allocation of up to 4GB buffers, which was not being checked for failure. This will likely crash the authenticated user's sftp server connection (if implemented as forking as recommended). For thread-based servers, this might also cause DoS for legitimate users.
Given this code is not in any released versions, no security releases have been issued.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | libssh | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Fedora | Extra Packages for Enterprise Linux 7 | — | — |
| Fedora | Fedora | — | — |
Advisories 1
- WID-SEC-2023-1703 libssh: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Jul 10, 2023
References
- https://access.redhat.com/security/cve/CVE-2023-3603 vdb-entry
- RHBZ#2221791 issue-tracking