Summary
This update for libssh fixes the following issues:
- CVE-2025-4877: Fixed write beyond bounds in binary to base64 conversion functions (bsc#1245309).
- CVE-2025-4878: Fixed use of uninitialized variable in privatekey_from_file() (bsc#1245310).
- CVE-2025-5318: Fixed likely read beyond bounds in sftp server handle management (bsc#1245311).
- CVE-2025-5372: Fixed ssh_kdf() returns a success code on certain failures (bsc#1245314).
Fixed packages 6
| Release | Package | Fixed in |
|---|---|---|
| SUSE · Enterprise Storage 7.1 | libssh | 0.9.8-150200.13.9.1 |
| SUSE · SLE HPC 15 SP3 Linux Enterprise High Performance Computing 15 SP3-LTSS | libssh | 0.9.8-150200.13.9.1 |
| SUSE · SLE Micro 5.1 Linux Enterprise Micro 5.1 | libssh | 0.9.8-150200.13.9.1 |
| SUSE · SLE Micro 5.2 Linux Enterprise Micro 5.2 | libssh | 0.9.8-150200.13.9.1 |
| SUSE · SLES 15 SP3 Linux Enterprise Server 15 SP3-LTSS | libssh | 0.9.8-150200.13.9.1 |
| SUSE · SLES for SAP 15 SP3 Linux Enterprise Server for SAP Applications 15 SP3 | libssh | 0.9.8-150200.13.9.1 |
Vulnerabilities 4
-
Medium 5.4
Libssh: out-of-bounds read in sftp_handle()
A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return …
-
Medium 5.0
Libssh: incorrect return code handling in ssh_kdf() in libssh
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses…
-
Medium 4.5
Libssh: write beyond bounds in binary to base64 conversion functions
There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory u…
-
Low 3.6
Libssh: use of uninitialized variable in privatekey_from_file()
A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failur…
References
-
report
https://bugzilla.suse.com/1245309
-
report
https://bugzilla.suse.com/1245310
-
report
https://bugzilla.suse.com/1245311
-
report
https://bugzilla.suse.com/1245314
-
web
https://www.suse.com/security/cve/CVE-2025-4877
-
web
https://www.suse.com/security/cve/CVE-2025-4878
-
web
https://www.suse.com/security/cve/CVE-2025-5318
-
web
https://www.suse.com/security/cve/CVE-2025-5372