Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 959101 (CVE-2025-4877, CVE-2025-4878, CVE-2025-5318, CVE-2025-5351, CVE-2025-5372, CVE-2025-5449, CVE-2025-5987) - <net-libs/libssh-0.11.2: Multiple vulnerabilities
Summary: <net-libs/libssh-0.11.2: Multiple vulnerabilities
Status: IN_PROGRESS
Alias: CVE-2025-4877, CVE-2025-4878, CVE-2025-5318, CVE-2025-5351, CVE-2025-5372, CVE-2025-5449, CVE-2025-5987
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://www.libssh.org/2025/06/24/lib...
Whiteboard: B3 [stable?]
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-26 01:58 UTC by Sam James
Modified: 2025-06-26 02:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-26 01:58:59 UTC
"""
This is a security release of libssh to address the following security issues:

    CVE-2025-4877 – Write beyond bounds in binary to base64 conversion functions
    CVE-2025-4878 – Use of uninitialized variable in privatekey_from_file()
    CVE-2025-5318 – Likely read beyond bounds in sftp server handle management
    CVE-2025-5351 – Double free in functions exporting keys
    CVE-2025-5372 – ssh_kdf() returns a success code on certain failures
    CVE-2025-5449 – Likely read beyond bounds in sftp server message decoding
    CVE-2025-5987 – Invalid return code for chacha20 poly1305 with OpenSSL backend
"""
Comment 1 Larry the Git Cow gentoo-dev 2025-06-26 02:14:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ad83a84728ca9719c46198f3e911fb678b1f230

commit 1ad83a84728ca9719c46198f3e911fb678b1f230
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-06-26 02:12:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-26 02:12:52 +0000

    net-libs/libssh: add 0.11.2, use dot-a.eclass for LTO static libs
    
    There are two upstream commits to improve test timeouts:
    * 1d157c57a3c8a34abbbff96266687101ecf246e4
    * 747dd17e64141d4875f2616f3e520ee3245b8b7b
    
    I'm not going to drop our timeout increases and such now as this
    is a security bump and we don't want to jeopardise stabilisation
    beind held up by avoidable test failures.
    
    Bug: https://bugs.gentoo.org/959101
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libssh/Manifest             |   1 +
 net-libs/libssh/libssh-0.11.2.ebuild | 144 +++++++++++++++++++++++++++++++++++
 net-libs/libssh/libssh-9999.ebuild   |  13 +++-
 3 files changed, 155 insertions(+), 3 deletions(-)