Up to [cvs.NetBSD.org] / pkgsrc / security / libssh
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7212 - requested by taca
security/libssh: Security fix
Revisions pulled up:
- security/libssh/Makefile 1.59
- security/libssh/PLIST 1.24
- security/libssh/buildlink3.mk 1.27
- security/libssh/distinfo 1.36
- security/libssh/patches/patch-tests_torture.c 1.2
---
Module Name: pkgsrc
Committed By: wiz
Date: Thu Jul 23 09:25:56 UTC 2026
Modified Files:
pkgsrc/security/libssh: Makefile PLIST buildlink3.mk distinfo
pkgsrc/security/libssh/patches: patch-tests_torture.c
Log Message:
libssh: update to 0.11.5.
Follow upstream version numbering again.
version 0.11.5 (released 2026-07-21)
* Security:
* CVE-2026-15370: Stack buffer overflow in SFTP server longname construction
* CVE-2026-59843: Denial of service via zero advertised channel packet size
* CVE-2026-59844: Denial of service via oversized SFTP read length
* CVE-2026-59845: Denial of service via unchecked ProxyCommand fork() failure
* CVE-2026-59846: Information disclosure via ProxyCommand %r username expansion
* CVE-2026-59847: Integrity downgrade via OpenSSL AES-GCM tag verification
* CVE-2026-59848: Denial of service via SFTP responses with unknown request IDs
* CVE-2026-59849: Denial of service via automatic certificate authentication loop
* CVE-2026-59850: Use-after-free via data callbacks on closed channels
* Zero-initialize every ssh_string
* Compatibility:
* Fix compatibility with C23 / gcc16
* Bugfixes:
* Fix multiple memory leaks, null checks, and error checks
* Validate peer public key in DH key exchange
* Avoid remote window overflow
* Avoid off-by-one overflow during kbdint authentication
* Avoid logging uninitialized sequence numbers
* Avoid double conversion of SFTP version number
* Send correct SFTP server version number
* Avoid handling repeated SFTP INIT messages
* Harmonize return values from SFTP server callbacks
*: recursive bump for libssh version number change back to upstream
libssh: update to 0.11.5. Follow upstream version numbering again. version 0.11.5 (released 2026-07-21) * Security: * CVE-2026-15370: Stack buffer overflow in SFTP server longname construction * CVE-2026-59843: Denial of service via zero advertised channel packet size * CVE-2026-59844: Denial of service via oversized SFTP read length * CVE-2026-59845: Denial of service via unchecked ProxyCommand fork() failure * CVE-2026-59846: Information disclosure via ProxyCommand %r username expansion * CVE-2026-59847: Integrity downgrade via OpenSSL AES-GCM tag verification * CVE-2026-59848: Denial of service via SFTP responses with unknown request IDs * CVE-2026-59849: Denial of service via automatic certificate authentication loop * CVE-2026-59850: Use-after-free via data callbacks on closed channels * Zero-initialize every ssh_string * Compatibility: * Fix compatibility with C23 / gcc16 * Bugfixes: * Fix multiple memory leaks, null checks, and error checks * Validate peer public key in DH key exchange * Avoid remote window overflow * Avoid off-by-one overflow during kbdint authentication * Avoid logging uninitialized sequence numbers * Avoid double conversion of SFTP version number * Send correct SFTP server version number * Avoid handling repeated SFTP INIT messages * Harmonize return values from SFTP server callbacks
*: recursive bump for default Kerberos implementation switch
*: bump for openssl 3
libssh: add 'gssapi' option, enabled (as before) by default. Bump PKGREVISION.
libssh: update to 0.10.4
version 0.10.4 (released 2022-09-07)
* Fixed issues with KDF on big endian
version 0.10.3 (released 2022-09-05)
* Fixed possible infinite loop in known hosts checking
version 0.10.2 (released 2022-09-02)
* Fixed tilde expansion when handling include directives
* Fixed building the shared torture library
* Made rekey test more robust (fixes running on i586 build systems e.g koji)
version 0.10.1 (released 2022-08-30)
* Fixed proxycommand support
* Fixed musl libc support
version 0.10.0 (released 2022-08-26)
* Added support for OpenSSL 3.0
* Added support for mbedTLS 3
* Added support for Smart Cards (through openssl pkcs11 engine)
* Added support for chacha20-poly1305@openssh.com with libgcrypt
* Added support ed25519 keys in PEM files
* Added support for sk-ecdsa and sk-ed25519 (server side)
* Added support for limiting RSA key sizes and not accepting small one by
default
* Added support for ssh-agent on Windows
* Added ssh_userauth_publickey_auto_get_current_identity() API
* Added ssh_vlog() API
* Added ssh_send_issue_banner() API
* Added ssh_session_set_disconnect_message() API
* Added new configuration options:
+ IdentityAgent
+ ModuliFile
* Provided X11 client example
* Disabled DSA support at build time by default (will be removed in the next
release)
* Deprecated the SCP API!
* Deprecated old pubkey, privatekey API
* Avoided some needless large stack buffers to minimize memory footprint
* Removed support for OpenSSL < 1.0.1
* Fixed parsing username@host in login name
* Free global init mutex in the destructor on Windows
* Fixed PEM parsing in mbedtls to support both legacy and new PKCS8 formats
libssh: stop pulling in argp in buildlink3.mk
*: recursive bump for heimdal 7.7.0 its buildlink3.mk now includes openssl's buildlink3.mk
libssh: update to 0.95. version 0.9.5 (released 2020-XX-XX) * CVE-2020-16135: Avoid null pointer dereference in sftpserver (T232) * Improve handling of library initialization (T222) * Fix parsing of subsecond times in SFTP (T219) * Make the documentation reproducible * Remove deprecated API usage in OpenSSL * Fix regression of ssh_channel_poll_timeout() returning SSH_AGAIN * Define version in one place (T226) * Prevent invalid free when using different C runtimes than OpenSSL (T229) * Compatibility improvements to testsuite
*: Recursive revision bump for openssl 1.1.1.
libssh: updated to 0.8.5 version 0.8.5: * Added support to get known_hosts locations with ssh_options_get() * Fixed preferred algorithm for known hosts negotiations * Fixed KEX with some server implementations (e.g. Cisco) * Fixed issues with MSVC * Fixed keyboard-interactive auth in server mode (regression from CVE-2018-10933) * Fixed gssapi auth in server mode (regression from CVE-2018-10933) * Fixed socket fd handling with proxy command * Fixed a memory leak with OpenSSL version 0.8.4: * Fixed CVE-2018-10933 * Fixed building without globbing support * Fixed possible memory leaks * Avoid SIGPIPE on sockets version 0.8.3: * Added support for rsa-sha2 * Added support to parse private keys in openssh container format (other than ed25519) * Added support for diffie-hellman-group18-sha512 and diffie-hellman-group16-sha512 * Added ssh_get_fingerprint_hash() * Added ssh_pki_export_privkey_base64() * Added support for Match keyword in config file * Improved performance and reduced memory footprint for sftp * Fixed ecdsa publickey auth * Fixed reading a closed channel * Added support to announce posix-rename@openssh.com and hardlink@openssh.com in the sftp server version 0.8.2: * Added sha256 fingerprints for pubkeys * Improved compiler flag detection * Fixed race condition in reading sftp messages * Fixed doxygen generation and added modern style * Fixed library initialization on Windows * Fixed __bounded__ attribute detection * Fixed a bug in the options parser * Fixed documentation for new knwon_hosts API version 0.8.1: * Fixed version number in the header * Fixed version number in pkg-config and cmake config * Fixed library initialization * Fixed attribute detection version 0.8.0: * Removed support for deprecated SSHv1 protocol * Added new connector API for clients * Added new known_hosts parsing API * Added support for OpenSSL 1.1 * Added support for chacha20-poly1305 cipher * Added crypto backend for mbedtls crypto library * Added ECDSA support with gcrypt backend * Added advanced client and server testing using cwrap.org * Added support for curve25519-sha256 alias * Added support for global known_hosts file * Added support for symbol versioning * Improved ssh_config parsing * Improved threading support
Add missing dependency: devel/argp This fixes build on NetBSD-7.99.39 with pkgsrc-current from 2016-10-09. Bump PKGREVISION to 2.
Bump PKGREVISION for security/openssl ABI bump.
Fix option handling in bl3.mk.
Recursive PKGREVISION bump for OpenSSL API version bump.
PKGREVISION bumps for the security/openssl 1.0.1d update.
Commit missing file, and fix the version gate. Thanks to Noud de Brouwer for beta-testing the package.
Update libssh to (upstream) 0.5.4 == (our) 0.54. (We need to keep the old numbering syntax to make versions compare correctly.) There are only two consumers in pkgsrc; one of them (remmina and remmina-plugins) actually needed library version 0.4 or later, and didn't build the ssh/sftp/nx plugins without. Hydra is also supposed to build with 0.4.x and later.) Upstream changelogs: 0.5.4: CVE-2013-0176 - NULL dereference leads to denial of service Fixed several NULL pointer dereferences in SSHv1. Fixed a free crash bug in options parsing. and for completeness 0.5.3: This is an important SECURITY and maintenance release in order to address CVE-2012-4559, CVE-2012-4560, CVE-2012-4561 and CVE-2012-4562. CVE-2012-4559 - Fix multiple double free() flaws CVE-2012-4560 - Fix multiple buffer overflow flaws CVE-2012-4561 - Fix multiple invalid free() flaws CVE-2012-4562 - Fix multiple improper overflow checks (...)
Set BUILDLINK_ABI_DEPENDS correctly (with +=, not ?=) It turns out there were a lot of these.
Add missing devel/zlib buildlink. Bump PKGREVISION
Simply and speed up buildlink3.mk files and processing. This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
Change the format of BUILDLINK_ORDER to contain depth information as well, and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
Track information in a new variable BUILDLINK_ORDER that informs us of the order in which buildlink3.mk files are (recursively) included by a package Makefile.
Aligned the last line of the buildlink3.mk files with the first line, so that they look nicer.
Over 1200 files touched but no revisions bumped :) RECOMMENDED is removed. It becomes ABI_DEPENDS. BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo. BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo. BUILDLINK_DEPENDS does not change. IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS which defaults to "yes". Added to obsolete.mk checking for IGNORE_RECOMMENDED. I did not manually go through and fix any aesthetic tab/spacing issues. I have tested the above patch on DragonFly building and packaging subversion and pkglint and their many dependencies. I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I have used IGNORE_RECOMMENDED for a long time). I have been an active user of IGNORE_RECOMMENDED since it was available. As suggested, I removed the documentation sentences suggesting bumping for "security" issues. As discussed on tech-pkg. I will commit to revbump, pkglint, pkg_install, createbuildlink separately. Note that if you use wip, it will fail! I will commit to pkgsrc-wip later (within day).
Update to 0.11 > -server implementation development. I won't document it before it even works. > -small bug corrected when connecting to sun ssh servers. > -channel wierdness corrected (writing huge data packets) > -channel_read_nonblocking added > -channel bug where stderr wasn't correctly read fixed. > -sftp_file_set_nonblocking added. It's now possible to have nonblocking SFTP IO > -connect_status callback. > -priv.h contains the internal functions, libssh.h the public interface > -options_set_timeout (thx marcelo) really working. > -tcp tunneling through channel_open_forward. > -channel_request_exec() > -channel_request_env() > -ssh_get_pubkey_hash() > -ssh_is_server_known() > -ssh_write_known_host() > -options_set_ssh_dir > -how could this happen ! there weren't any channel_close ! > -nasty channel_free bug resolved. > -removed the unsigned long all around the code. use only u8,u32 & u64. > -it now compiles and runs under amd64 ! > -channel_request_exec() > -channel_request_env() > -ssh_get_pubkey_hash() > -ssh_is_server_known() > -ssh_write_known_host() > -options_set_ssh_dir > -how could this happen ! there weren't any channel_close ! > -nasty channel_free bug resolved. > -removed the unsigned long all around the code. use only u8,u32 & u64. > -it now compiles and runs under amd64 ! > -channel_request_pty_size > -channel_change_pty_size > -options_copy() > -ported the doc to an HTML file. > -small bugfix in packet.c > -prefixed error constants with SSH_ > -sftp_stat, sftp_lstat, sftp_fstat. thanks Michel Bardiaux for the patch. > -again channel number mismatch fixed. > -fixed a bug in ssh_select making the select fail when a signal has been caught. > -keyboard-interactive authentication working.
This buildlink3.mk wasn't adding to BUILDLINK_DEPENDS like it was supposed to.
The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).
Initial revision