]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
3 hours agoupstream: crank up MaxAuthTries to avoid failures here master anongit/master
djm@openbsd.org [Mon, 3 Aug 2026 06:53:11 +0000 (06:53 +0000)] 
upstream: crank up MaxAuthTries to avoid failures here

OpenBSD-Regress-ID: 052b0c4cc8bd6ea2679fbc9f96f4cb7f48c73035

3 hours agoupstream: regression test for pubkey ordering in the client; ok
djm@openbsd.org [Mon, 3 Aug 2026 06:52:50 +0000 (06:52 +0000)] 
upstream: regression test for pubkey ordering in the client; ok

dtucker

OpenBSD-Regress-ID: e55fa977be300307e6e03a001716b3dce8faa1a1

3 hours agoupstream: Tweak ordering of certificates tried during pubkey
djm@openbsd.org [Mon, 3 Aug 2026 06:50:49 +0000 (06:50 +0000)] 
upstream: Tweak ordering of certificates tried during pubkey

authentication to prefer FIDO keys that do not require user presence (touch)
first, followed by ones that do and with FIDO keys that require user
verification via PIN or biometrics last.

This effectively tries low-friction authenticators before higher
friction authenticators.

ok dtucker@

OpenBSD-Commit-ID: 067076c652dbb4f2aa89c6e82b19d8cbfec1d1be

3 hours agoupstream: Add a "ssh -Z user@host" mode that dumps the pubkeys that
djm@openbsd.org [Mon, 3 Aug 2026 06:47:24 +0000 (06:47 +0000)] 
upstream: Add a "ssh -Z user@host" mode that dumps the pubkeys that

will be tried for authentication in the order that they will be used.

feedback tb@ ok dtucker@

OpenBSD-Commit-ID: 617a7f149d1410980eac551e4780280190a5f218

3 hours agoupstream: fix ML-KEM/ECDH interop problem (does not affect github-selfhosted/master github/master
djm@openbsd.org [Mon, 3 Aug 2026 06:43:16 +0000 (06:43 +0000)] 
upstream: fix ML-KEM/ECDH interop problem (does not affect

mlkem768x25519-sha256) from markus@

OpenBSD-Commit-ID: 9c72e9c0407906bb7d5fb16648b38282676391e9

2 days agoRequire NISTP521 in libcrypto.
Darren Tucker [Sat, 1 Aug 2026 02:10:40 +0000 (12:10 +1000)] 
Require NISTP521 in libcrypto.

Previously we supported building without NISTP521 in libcrypto since
some vendors shipped without it, but this now seems uncommon. This
removes that support, requiring a fully functional libcrypto.

This removes another set of diffs vs upstream and should reduce the
maintenance burden.  ok djm@

2 days agoRemove support for libcrypto w/out ECC.
Darren Tucker [Fri, 31 Jul 2026 11:32:53 +0000 (21:32 +1000)] 
Remove support for libcrypto w/out ECC.

Since 2010, we have supported building against an OpenSSL that did not
have any ECC support, since at the time many systems still shipped with
OpenSSL versions prior to ECC being added.  We no longer support OpenSSL
versions that old, and while it's possible to build a modern libcrypto
without ECC, doing so seems very uncommon.

Having OPENSSL_HAS_ECC sprinkled throughout the code increases the
cost of syncing changes and is a maintenance burden, so this has now
outlived its usefulness and is being removed.  It is still possible to
build --without-openssl on such systems if required.

This includes a few whitespace and header order changes to bring
Portable back into sync with OpenBSD in those places, and removes the
corresponding test.

ok djm@

3 days agoAdd includes.h for compat interfaces.
Darren Tucker [Thu, 30 Jul 2026 12:15:46 +0000 (22:15 +1000)] 
Add includes.h for compat interfaces.

4 days agoupstream: Use ssh_mldsa44_ed25519_cleanup consistently to avoid
brynet@openbsd.org [Thu, 30 Jul 2026 07:40:48 +0000 (07:40 +0000)] 
upstream: Use ssh_mldsa44_ed25519_cleanup consistently to avoid

calling freezero with the wrong size.

With help from tb@

ok tb, dtucker@

OpenBSD-Commit-ID: 4de18532e448a62005e12c179786bec512b83fde

4 days agoupstream: Fix $OpenBSD marker for easier syncing.
dtucker@openbsd.org [Thu, 30 Jul 2026 07:30:41 +0000 (07:30 +0000)] 
upstream: Fix $OpenBSD marker for easier syncing.

OpenBSD-Commit-ID: 1f38203c268007964b0abdfa4e024d572c65a898

4 days agoupstream: ssh: update kex unit test
markus@openbsd.org [Tue, 28 Jul 2026 09:55:44 +0000 (09:55 +0000)] 
upstream: ssh: update kex unit test

OpenBSD-Regress-ID: db6f1a538803716ce225e2128046de0b6ab6d2aa

4 days agoupstream: Make mlkem768ecdh build with OPENSSL=no. ok djm@
dtucker@openbsd.org [Thu, 30 Jul 2026 07:29:09 +0000 (07:29 +0000)] 
upstream: Make mlkem768ecdh build with OPENSSL=no. ok djm@

OpenBSD-Commit-ID: b23fc98b885d72b57d9a2b989f6c062751bff52b

4 days agoupstream: pass back errors from ed25519 key generation, which
djm@openbsd.org [Thu, 30 Jul 2026 03:39:39 +0000 (03:39 +0000)] 
upstream: pass back errors from ed25519 key generation, which

theoretically can fail. From Dimitri John Ledkov via GHPR702.

ok deraadt@ dtucker@

OpenBSD-Commit-ID: 1ecdd981c3f89393092949ff5e96662946fc5040

4 days agoupstream: Move check of public key type against allowed algorithms
djm@openbsd.org [Thu, 30 Jul 2026 03:37:39 +0000 (03:37 +0000)] 
upstream: Move check of public key type against allowed algorithms

to before parsing of the key sent by the peer.

This removes at least some key parsing and verification paths from
the pre-auth attack surface.

Suggested by Christopher Paul Rohlf of Anthropic, ok deraadt@

OpenBSD-Commit-ID: 4560b53b5cd2fe9b875436e48995a1829c2a9dea

4 days agoupstream: Fix double frees (impossible to reach outside of a test
deraadt@openbsd.org [Thu, 30 Jul 2026 03:13:34 +0000 (03:13 +0000)] 
upstream: Fix double frees (impossible to reach outside of a test

harness), and also use freezero where possible from Christopher Paul Rohlf at
Anthropic ok djm

OpenBSD-Commit-ID: 50227bff4ffd4a93aad399f21fc20f1c3cbf2c69

4 days agoupstream: ssh: implement mlkem768brainpoolp256r1-sha256; ok djm@
markus@openbsd.org [Mon, 27 Jul 2026 12:31:09 +0000 (12:31 +0000)] 
upstream: ssh: implement mlkem768brainpoolp256r1-sha256; ok djm@

OpenBSD-Commit-ID: 99a304085f96d9a595b326c06694290c5612620c

4 days agoupstream: ssh: implement mlkem768nistp256-sha256; ok djm@
markus@openbsd.org [Mon, 27 Jul 2026 12:28:52 +0000 (12:28 +0000)] 
upstream: ssh: implement mlkem768nistp256-sha256; ok djm@

OpenBSD-Commit-ID: f5daafce2fcb44684606197873dab4cd189524a9

4 days agoupstream: use sshpkt_fatal instead of plain fatal() for errors in
djm@openbsd.org [Thu, 23 Jul 2026 06:33:06 +0000 (06:33 +0000)] 
upstream: use sshpkt_fatal instead of plain fatal() for errors in

the packet code as this provides context of the failing peer (address, port,
user, etc). Based on patch from Dag-Erling Smørgrav
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: 2e50ab08ab697722230f5d7dbebc9ea3c4f2931b

12 days agoupstream: Automatically detect IPv6 support
dtucker@openbsd.org [Wed, 22 Jul 2026 00:37:24 +0000 (00:37 +0000)] 
upstream: Automatically detect IPv6 support

and test IPv6 parsing if found. This should always be enabled on OpenBSD,
but allows us to use the same test in Portable without modifications
that make syncs harder.

OpenBSD-Regress-ID: 80dce2465e9414695d878a9af18a3d75711f7861

12 days agoupstream: Factor out all of the IPv6 addresses into variables.
dtucker@openbsd.org [Tue, 21 Jul 2026 23:43:15 +0000 (23:43 +0000)] 
upstream: Factor out all of the IPv6 addresses into variables.

This lets us skip them in Portable on platforms that don't support IPv6
all in one place, removing diffs from within the tests themselves and
making syncs easier.

OpenBSD-Regress-ID: be5d2d67c28f8134f84e8baab09f303be8ceb626

12 days agoSync missed case-insensitivity changes.
Darren Tucker [Tue, 21 Jul 2026 22:44:39 +0000 (08:44 +1000)] 
Sync missed case-insensitivity changes.

12 days agoAdd obsd79 target.
Darren Tucker [Tue, 14 Jul 2026 08:30:40 +0000 (18:30 +1000)] 
Add obsd79 target.

12 days agoWording.
Darren Tucker [Tue, 14 Jul 2026 08:29:26 +0000 (18:29 +1000)] 
Wording.

13 days agoupstream: verify that ChannelTimeout in a Match block is effective
djm@openbsd.org [Tue, 21 Jul 2026 06:18:23 +0000 (06:18 +0000)] 
upstream: verify that ChannelTimeout in a Match block is effective

OpenBSD-Regress-ID: 30770cad71ca060aaaa05e4bdd0ea8941b768c6b

13 days agoupstream: verify that RekeyLimit in a Match block is effective
djm@openbsd.org [Tue, 21 Jul 2026 06:18:09 +0000 (06:18 +0000)] 
upstream: verify that RekeyLimit in a Match block is effective

OpenBSD-Regress-ID: 23084bcf86071a7fe0c121552ec6e0b208cc7e28

13 days agoupstream: Use -Ohashalg to restrict output to specfic hash instead
dtucker@openbsd.org [Thu, 16 Jul 2026 09:07:18 +0000 (09:07 +0000)] 
upstream: Use -Ohashalg to restrict output to specfic hash instead

of awk.

OpenBSD-Regress-ID: aa5fac0e3ee8f518794d3361d537090c6e3f0bec

13 days agoupstream: fix ChannelTimeout and RekeyLimit not being applied in
djm@openbsd.org [Tue, 21 Jul 2026 06:17:42 +0000 (06:17 +0000)] 
upstream: fix ChannelTimeout and RekeyLimit not being applied in

sshd_config Match blocks; reported by Alex Harrison

OpenBSD-Commit-ID: 2d8866b841fc92e6e079e3f37590ba5948531b3d

13 days agoupstream: s/= - 1/= -1/; from serity---
djm@openbsd.org [Tue, 21 Jul 2026 05:21:29 +0000 (05:21 +0000)] 
upstream: s/= - 1/= -1/; from serity---

OpenBSD-Commit-ID: d003b300b0062d8e5951b84e8e09bd8d98cfe562

13 days agoupstream: move to a better place
djm@openbsd.org [Thu, 16 Jul 2026 04:12:50 +0000 (04:12 +0000)] 
upstream: move to a better place

OpenBSD-Commit-ID: 0c70f26de19babb2557a7a95ae7057d996a2c3f8

13 days agoupstream: use crypto_api.h #define constants for lengths; no
djm@openbsd.org [Tue, 14 Jul 2026 04:43:13 +0000 (04:43 +0000)] 
upstream: use crypto_api.h #define constants for lengths; no

binary change

OpenBSD-Commit-ID: 6527baa1f07b7fdf42ca84531a13ae3ff2c0dbc8

13 days agoupstream: make authorized_keys "restrict" keyword apply correctly
djm@openbsd.org [Tue, 14 Jul 2026 01:05:05 +0000 (01:05 +0000)] 
upstream: make authorized_keys "restrict" keyword apply correctly

to tunnel forwarding (which is administratively disabled by default).

Reported by Erichen, Institute of Computing Technology,
Chinese Academy of Sciences

OpenBSD-Commit-ID: 5b3cc987a64749c94b20e12755db32a83f8f01e6

13 days agoupstream: in sshd config dump mode, write all directives in mixed
naddy@openbsd.org [Sat, 11 Jul 2026 11:16:47 +0000 (11:16 +0000)] 
upstream: in sshd config dump mode, write all directives in mixed

case for consistency

ok djm@

OpenBSD-Commit-ID: 55647b13194d0aaa7095b89455d4c44ddeb53e7d

13 days agoupstream: read ~/.ssh/id_mldsa44_ed25519 private key files by
naddy@openbsd.org [Sat, 11 Jul 2026 11:15:03 +0000 (11:15 +0000)] 
upstream: read ~/.ssh/id_mldsa44_ed25519 private key files by

default

ok djm@

OpenBSD-Commit-ID: c45683d341d7dce6c126903bf9a37393f2b75839

13 days agoupstream: document mldsa44-ed25519 host key and public key
naddy@openbsd.org [Fri, 10 Jul 2026 17:21:19 +0000 (17:21 +0000)] 
upstream: document mldsa44-ed25519 host key and public key

algorithm

OpenBSD-Commit-ID: c519ba7408cfb2700d184c9441de4ff01ecda726

13 days agoupstream: when signing hostkey proofs for a client UpdateHostKeys
djm@openbsd.org [Thu, 9 Jul 2026 02:22:10 +0000 (02:22 +0000)] 
upstream: when signing hostkey proofs for a client UpdateHostKeys

request, allow each hostkey to perform at most one signature operation. ok
dtucker@

OpenBSD-Commit-ID: ad4149015634f8156ba723656035ec26140875e8

13 days agoupstream: setproctitle(3) to identify sshd-session when its
djm@openbsd.org [Thu, 9 Jul 2026 02:20:19 +0000 (02:20 +0000)] 
upstream: setproctitle(3) to identify sshd-session when its

acting as a post- authentication monitor; ok dtucker@

OpenBSD-Commit-ID: a3c36a005a61ccaeb974afd7b9290b826e1620ba

13 days agoupstream: delete list of ssh_config(5) options under
djm@openbsd.org [Thu, 9 Jul 2026 01:16:37 +0000 (01:16 +0000)] 
upstream: delete list of ssh_config(5) options under

documentation of -o and instead just direct readers to the actual
ssh_config(5) manpage.

ok deraadt@

OpenBSD-Commit-ID: bed2058af847c2149e0e457202a8c4ee7000ad33

13 days agoupstream: enable the ssh-mldsa44-ed25519@openssh.com signature
djm@openbsd.org [Thu, 9 Jul 2026 01:15:34 +0000 (01:15 +0000)] 
upstream: enable the ssh-mldsa44-ed25519@openssh.com signature

scheme (and its corresponding certificate form) in the lowest-priority
position.

"what took you so long" deraadt@

OpenBSD-Commit-ID: b7be74df494323a7021cf230f11eff824d2810d0

13 days agoupstream: prefer fstat to stat when it's trivial to do so
djm@openbsd.org [Tue, 7 Jul 2026 04:04:16 +0000 (04:04 +0000)] 
upstream: prefer fstat to stat when it's trivial to do so

OpenBSD-Commit-ID: 3af5548ba2112045db392a14c959ca309605bdb9

3 weeks agoupstream: Add tests for ecdsa 256, 384 and 521 keys in DNS
dtucker@openbsd.org [Sun, 12 Jul 2026 11:19:33 +0000 (11:19 +0000)] 
upstream: Add tests for ecdsa 256, 384 and 521 keys in DNS

fingerprints. Dynamically generate the required zone file.

OpenBSD-Regress-ID: 61acdf25efc8c5d3bb0156fd3a53bf8159d3e13a

3 weeks agoupstream: check sshd_config output case insensitively
djm@openbsd.org [Sun, 12 Jul 2026 08:40:00 +0000 (08:40 +0000)] 
upstream: check sshd_config output case insensitively

OpenBSD-Regress-ID: dafa6c3e723cf39ca5e552304372bc085c348102

3 weeks agoupstream: Add SSHFP tests for ed25519 key type.
dtucker@openbsd.org [Sun, 12 Jul 2026 06:10:32 +0000 (06:10 +0000)] 
upstream: Add SSHFP tests for ed25519 key type.

OpenBSD-Regress-ID: a4bc60d0f398b148a29df3594d5f36de0e4e5ea2

3 weeks agoupstream: Restructure the SSHFP test in preparation for adding
dtucker@openbsd.org [Sat, 11 Jul 2026 09:59:10 +0000 (09:59 +0000)] 
upstream: Restructure the SSHFP test in preparation for adding

other key types:  - change the DNS names to be rsa.* for the existing RSA
fingerprints.  - verify that all required SSHFP records exist in DNS.  - only
run the RSA tests if the build supports RSA.

OpenBSD-Regress-ID: 03e4087c3bd09ad8bede788f76f0ab59b732639e

3 weeks agoremove README.tun
Damien Miller [Wed, 8 Jul 2026 01:07:01 +0000 (11:07 +1000)] 
remove README.tun

it's badly out of date, has already been deleted upstream and is not
well-adapted for portable.

3 weeks agoadd some parentheses to clarify a && || condition
Damien Miller [Wed, 8 Jul 2026 00:27:56 +0000 (10:27 +1000)] 
add some parentheses to clarify a && || condition

Spotted by Harish Yadav

3 weeks agoupstream: unused variables
djm@openbsd.org [Tue, 7 Jul 2026 02:17:18 +0000 (02:17 +0000)] 
upstream: unused variables

OpenBSD-Commit-ID: 03fc22fb427b7547ee7844907cf3257bce7fdc3c

3 weeks agoupstream: fix GSSAPI option names, that I somehow screwed up while
djm@openbsd.org [Tue, 7 Jul 2026 01:00:22 +0000 (01:00 +0000)] 
upstream: fix GSSAPI option names, that I somehow screwed up while

refactoring servconf.c bz3974 patch from Colin Watson

OpenBSD-Commit-ID: be39ad3dbe36d9ecdb86f3811da5dfbdc9bcb1e6

3 weeks agoAdd 10.4 branch to status page.
Darren Tucker [Mon, 6 Jul 2026 11:14:53 +0000 (21:14 +1000)] 
Add 10.4 branch to status page.

4 weeks agodepend
Damien Miller [Mon, 6 Jul 2026 07:56:53 +0000 (17:56 +1000)] 
depend

4 weeks agocrank version numbers
Damien Miller [Mon, 6 Jul 2026 07:56:10 +0000 (17:56 +1000)] 
crank version numbers

4 weeks agoupstream: openssh-10.4
djm@openbsd.org [Mon, 6 Jul 2026 07:54:26 +0000 (07:54 +0000)] 
upstream: openssh-10.4

OpenBSD-Commit-ID: ce7b0749e5139c70410ee92a13d368d7d34262b5

4 weeks agoupstream: Fix multiple RFC 4462 (GSSAPIAuthentication) compliance
djm@openbsd.org [Mon, 6 Jul 2026 07:53:30 +0000 (07:53 +0000)] 
upstream: Fix multiple RFC 4462 (GSSAPIAuthentication) compliance

problems

1) Remove an early failure return for GSSAPI authentication attempts
made for invalid accounts that yielded different behaviour for
valid vs invalid accounts.

2) Fix a situation where some GSSAPI requestes were not correctly
subjected to MaxAuthTries.

3) Fix a moderate pre-authentication resource DoS related to #2.

Add missing logging for error cases.

Report and fixes from Manfred Kaiser, milCERT AT

OpenBSD-Commit-ID: ca0acdd64eea435d6f89534538a9eb404a5629d3

4 weeks agoupstream: fix ownership and lifetime of several bits of client
djm@openbsd.org [Mon, 6 Jul 2026 07:49:58 +0000 (07:49 +0000)] 
upstream: fix ownership and lifetime of several bits of client

state that need to persist for the life of the connection, especially the
cached hostkey that was being incorrectly freed early on some paths, possibly
allowing its use after free.

Reported by Zhenpeng (Leo) Lin from depthfirst.com

OpenBSD-Commit-ID: faaa6ad72e7d69d41fa8b197b606265b7d9bc73f

4 weeks agoupstream: Fix cases in GSSAPI and keyboard-interactive
djm@openbsd.org [Mon, 6 Jul 2026 07:44:48 +0000 (07:44 +0000)] 
upstream: Fix cases in GSSAPI and keyboard-interactive

authentication where the minimum per-attempt delay was not being enforced.

Reported by Orange Cyberdefense Vulnerability Team

OpenBSD-Commit-ID: c40bd35cc2428fcaccad7a141703c28baa6da01e

4 weeks agoupstream: void functions should not return anything. Patch from Tim
dtucker@openbsd.org [Sun, 5 Jul 2026 02:46:44 +0000 (02:46 +0000)] 
upstream: void functions should not return anything. Patch from Tim

Rice.

OpenBSD-Commit-ID: bb5021b2b45d9d3f54a012d569872805d107f59c

4 weeks agoupstream: fix inverted test that broke ssh-add with keys on stdin. From
djm@openbsd.org [Sun, 5 Jul 2026 00:16:21 +0000 (00:16 +0000)] 
upstream: fix inverted test that broke ssh-add with keys on stdin. From

Laurence Tratt

OpenBSD-Commit-ID: bcef522cfa587c7cf035660bb347cff36b65bfbd

4 weeks agogrammar fix; from Daniel O'Connor
Damien Miller [Fri, 3 Jul 2026 04:20:02 +0000 (14:20 +1000)] 
grammar fix; from Daniel O'Connor

4 weeks agomore config option details in README.privsep
Damien Miller [Fri, 3 Jul 2026 04:16:29 +0000 (14:16 +1000)] 
more config option details in README.privsep

4 weeks agomore README.privsep polish
Damien Miller [Fri, 3 Jul 2026 04:10:16 +0000 (14:10 +1000)] 
more README.privsep polish

4 weeks agotweak; from dlg@
Damien Miller [Fri, 3 Jul 2026 03:33:16 +0000 (13:33 +1000)] 
tweak; from dlg@

4 weeks agotweak previous
Damien Miller [Fri, 3 Jul 2026 02:49:26 +0000 (12:49 +1000)] 
tweak previous

4 weeks agorevise README.privsep for multi-binary model
Damien Miller [Fri, 3 Jul 2026 02:31:27 +0000 (12:31 +1000)] 
revise README.privsep for multi-binary model

This rewrites most of the privsep description to more accurately capture
recent changes in how sshd managed privilege across its lifecycle,
including describing the roles of the sshd-session and sshd-auth
helper binaries.

Also 100% more ASCII art

4 weeks agoNeed clang >= 19 for constexpr in hardened_malloc.
Darren Tucker [Thu, 2 Jul 2026 00:05:43 +0000 (10:05 +1000)] 
Need clang >= 19 for constexpr in hardened_malloc.

4 weeks agoTabs -> spaces.
Darren Tucker [Thu, 25 Jun 2026 08:43:48 +0000 (18:43 +1000)] 
Tabs -> spaces.

4 weeks agoProvide better error for non-supported private keys
Zoltan Fridrich [Wed, 16 Apr 2025 13:11:59 +0000 (15:11 +0200)] 
Provide better error for non-supported private keys

Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
4 weeks agoupstream: more missing mldsa44-ed25519, based on GHPR696 from Loganaden
djm@openbsd.org [Wed, 1 Jul 2026 01:14:39 +0000 (01:14 +0000)] 
upstream: more missing mldsa44-ed25519, based on GHPR696 from Loganaden

Velvindron

OpenBSD-Commit-ID: f32e17df54fa66b0e936f1aeb3963f949e4a9bb8

4 weeks agoupstream: whitespace
djm@openbsd.org [Wed, 1 Jul 2026 01:08:51 +0000 (01:08 +0000)] 
upstream: whitespace

OpenBSD-Commit-ID: 730e54174b2182c7011cc87a0fdae595cd9bcc2d

4 weeks agoupstream: simplify SIGINFO output: remove list of active channels (too
djm@openbsd.org [Wed, 1 Jul 2026 01:06:54 +0000 (01:06 +0000)] 
upstream: simplify SIGINFO output: remove list of active channels (too

verbose) and just display destination and connection duration; requested
deraadt@

OpenBSD-Commit-ID: cb36192cd53483f8e452ea91bc42be7bbb2fffa3

4 weeks agoupstream: Tighten up the introduction a little:
djm@openbsd.org [Wed, 1 Jul 2026 00:52:31 +0000 (00:52 +0000)] 
upstream: Tighten up the introduction a little:

Mention Match as a conditional directive (previously it only
mentioned Host)

Try to use consistent language in the introduction to refer to
configuration directives (previously it used "parameters" and
"keywords" interchangeably).

Mention that comments may appear at the end of the line too, and that
whitespace at the beginning/end of lines is not significant.

OpenBSD-Commit-ID: e08f34413eeced47478c14d5005726f9bdd5d80e

4 weeks agoupstream: Move negative-FD checks to before first use. CID 909998,
dtucker@openbsd.org [Wed, 1 Jul 2026 00:52:23 +0000 (00:52 +0000)] 
upstream: Move negative-FD checks to before first use. CID 909998,

ok djm@

OpenBSD-Commit-ID: f0208911d27fd5bd66cd608c7b6fb5a36002d6a5

4 weeks agoupstream: ssh -o doesn't support Host or Include options, they are only
djm@openbsd.org [Wed, 1 Jul 2026 00:04:46 +0000 (00:04 +0000)] 
upstream: ssh -o doesn't support Host or Include options, they are only

valid in the config file. bz3968 from xspielinbox

OpenBSD-Commit-ID: cbecf11f2eea63e3cf6752e9bbe59091ba60cd32

4 weeks agoupstream: mention mldsa44-ed25519 in usage(); based on GHPR695 from
djm@openbsd.org [Tue, 30 Jun 2026 23:55:32 +0000 (23:55 +0000)] 
upstream: mention mldsa44-ed25519 in usage(); based on GHPR695 from

Loganaden Velvindron

OpenBSD-Commit-ID: 4af2400312b6ca232a68a758160ca5c64ca6a168

4 weeks agoupstream: ssherr-libcrypto: avoid use of deprecated
tb@openbsd.org [Tue, 30 Jun 2026 03:42:53 +0000 (03:42 +0000)] 
upstream: ssherr-libcrypto: avoid use of deprecated

ERR_load_crypto_strings()

Follow regress and use unchecked OPENSSL_init_crypto() because
ERR_load_crypto_strings() has been deprecated in OpenSSL 1.1.0.
This call can in principle fail, in which case there's a fallback
to generic error strings.

There is still use of OpenSSL 3.x-deprecated API in here. That's
a problem for someone else to solve.

ok djm

OpenBSD-Commit-ID: 3e9dc94caa83b361775b83a92425e858f8680c05

4 weeks agoupstream: another ruser_name/ruser_group vs attrib_to_stat() ordering
djm@openbsd.org [Tue, 30 Jun 2026 02:30:19 +0000 (02:30 +0000)] 
upstream: another ruser_name/ruser_group vs attrib_to_stat() ordering

screwup. Coverity CID 910530 via dtucker@

OpenBSD-Commit-ID: d8c4656119f09304e79fcf2ab32299ed68006a29

4 weeks agoupstream: set FD_CLOEXEC on the fds between sftp and its ssh
djm@openbsd.org [Tue, 30 Jun 2026 00:10:48 +0000 (00:10 +0000)] 
upstream: set FD_CLOEXEC on the fds between sftp and its ssh

process, avoids risk of subcommands that write on odd fds breaking the
connection. GHPR693 from Manuel Einfalt; feedback deraadt@ ok dtucker@

OpenBSD-Commit-ID: 91b12cd66580dab6b3bfe5e507a1a8310c8f9149

4 weeks agoupstream: check key and IV length received in privsep state
djm@openbsd.org [Tue, 30 Jun 2026 00:09:01 +0000 (00:09 +0000)] 
upstream: check key and IV length received in privsep state

transfer exactly match the expected sizes for the selected cipher; partially
redundant to similar checks in cipher_init(), but nice to be more exact.

GHPR from jmestwa-coder; ok dtucker@

OpenBSD-Commit-ID: d4a9deef194cc44189e835ac59b7b800b9b5c281

4 weeks agoupstream: revert bits that weren't ready for commit yet
djm@openbsd.org [Mon, 29 Jun 2026 23:00:00 +0000 (23:00 +0000)] 
upstream: revert bits that weren't ready for commit yet

OpenBSD-Commit-ID: ee8a219f02db32778444356ad2d93b983a38a704

4 weeks agoupstream: Move user/group name lookup to correct place; coverity
djm@openbsd.org [Mon, 29 Jun 2026 22:56:44 +0000 (22:56 +0000)] 
upstream: Move user/group name lookup to correct place; coverity

CID 910530 via dtucker@

OpenBSD-Commit-ID: 03ba9f8c720eea38436e4fef4c40814eae1b1fe3

5 weeks agoupstream: fix ineffective max file size check when loading
djm@openbsd.org [Mon, 29 Jun 2026 09:14:25 +0000 (09:14 +0000)] 
upstream: fix ineffective max file size check when loading

blobs/keys from files and add another one on a patch that was not covered by
the existing ones. From Tess Gauthier via bz3969 and bz3970

OpenBSD-Commit-ID: c0dec6c587853349113df85b6dc528dc15079af0

5 weeks agoupstream: check strdup() return to avoid NULL deref on failure.
djm@openbsd.org [Mon, 29 Jun 2026 08:59:31 +0000 (08:59 +0000)] 
upstream: check strdup() return to avoid NULL deref on failure.

bz3948 from RuiHe-MO

OpenBSD-Commit-ID: 2b1fbfb2e1f3359150feadfdf05acaa1c7d211e8

5 weeks agoupstream: s/calloc/xcalloc/ to reduce noise from AI bug detectors
djm@openbsd.org [Mon, 29 Jun 2026 08:57:06 +0000 (08:57 +0000)] 
upstream: s/calloc/xcalloc/ to reduce noise from AI bug detectors

that don't understand context

OpenBSD-Commit-ID: dcef5b1804620f2aed108267bbf5023a81230e14

5 weeks agoupstream: fix "ls -n", which was still displaying user/group names
djm@openbsd.org [Mon, 29 Jun 2026 08:48:22 +0000 (08:48 +0000)] 
upstream: fix "ls -n", which was still displaying user/group names

rather than numeric uids/gids. Based on patch from Tamilan in bz3953

OpenBSD-Commit-ID: 65dd2ecb870b727e872cf9df544f8767426d2cc0

5 weeks agoupstream: move documentation of the Include directive to near the
djm@openbsd.org [Mon, 29 Jun 2026 08:21:50 +0000 (08:21 +0000)] 
upstream: move documentation of the Include directive to near the

start of the options list, alongside that for Match and Host which are
similar insofar as they all affect configuration parsing rather than altering
the configuration directly. from xspielinbox via bz3968

OpenBSD-Commit-ID: 1cde8af8d40dbbe3ea49cf56c5d408946c875230

5 weeks agoupstream: mention RefuseConnection, VersionAddendum and
djm@openbsd.org [Mon, 29 Jun 2026 08:19:21 +0000 (08:19 +0000)] 
upstream: mention RefuseConnection, VersionAddendum and

WarnWeakCrypto along with other options. from xspielinbox via bz3968

OpenBSD-Commit-ID: 5d4ef72dc703a74e64175e4611961ea338379d66

5 weeks agoupstream: correct directive name (s/Host/Match) in error message
djm@openbsd.org [Mon, 29 Jun 2026 08:16:46 +0000 (08:16 +0000)] 
upstream: correct directive name (s/Host/Match) in error message

from xspielinbox via bz3968

OpenBSD-Commit-ID: 3aec5cc9d349bcef12abc951490474f1217b4aeb

5 weeks agoupstream: report errors in fill_default_options() properly, based on
djm@openbsd.org [Mon, 29 Jun 2026 07:56:19 +0000 (07:56 +0000)] 
upstream: report errors in fill_default_options() properly, based on

GHPR649 by Zoltán Fridrich
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: 10137e31df74c3100e3abc7d008b1645ca5b45af

5 weeks agoupstream: don't use deprecated ERR_load_crypto_strings()
djm@openbsd.org [Mon, 29 Jun 2026 07:46:22 +0000 (07:46 +0000)] 
upstream: don't use deprecated ERR_load_crypto_strings()

GHPR650 from Mike Frysinger

OpenBSD-Regress-ID: bfe86d9be1db4569c091f3d763cba04ddbb86ec0

5 weeks agodon't leak rrset on fail; GHPR681 from metsw24-max
Damien Miller [Mon, 29 Jun 2026 07:21:01 +0000 (17:21 +1000)] 
don't leak rrset on fail; GHPR681 from metsw24-max

ok dtucker

5 weeks agocheck sockaddr length; GHPR681 from metsw24-max
Damien Miller [Mon, 29 Jun 2026 07:18:58 +0000 (17:18 +1000)] 
check sockaddr length; GHPR681 from metsw24-max

ok dtucker

5 weeks agoreturn result of raise(2); GHPR681 from metsw24-max
Damien Miller [Mon, 29 Jun 2026 07:17:28 +0000 (17:17 +1000)] 
return result of raise(2); GHPR681 from metsw24-max

ok dtucker

5 weeks agouse size_t for lengths; GHPR681 from metsw24-max
Damien Miller [Mon, 29 Jun 2026 07:16:55 +0000 (17:16 +1000)] 
use size_t for lengths; GHPR681 from metsw24-max

ok dtucker

5 weeks agofix leak of error path; GHPR681 from metsw24-max
Damien Miller [Mon, 29 Jun 2026 07:15:10 +0000 (17:15 +1000)] 
fix leak of error path; GHPR681 from metsw24-max

ok dtucker

5 weeks agoupstream: don't print an error message when trying to load a host
djm@openbsd.org [Mon, 29 Jun 2026 07:36:37 +0000 (07:36 +0000)] 
upstream: don't print an error message when trying to load a host

private key when PKCS#11 keys are in use, as these don't need the private
half on the filesystem. GHPR664 from Ingo Franzki

OpenBSD-Commit-ID: c93352e218cb1b74af04e8dc3a42eddec1f312c0

5 weeks agoupstream: make ssh-add open it's connection to the agent after it
djm@openbsd.org [Mon, 29 Jun 2026 02:13:05 +0000 (02:13 +0000)] 
upstream: make ssh-add open it's connection to the agent after it

has finished getopt() processing and not before. This allows the -v flag to
work properly.

ok jca@

OpenBSD-Commit-ID: b9ac820018875aeb5b43ae2119a70c16a5cd2aef

5 weeks agoupstream: Fix bounds checking when signing messages of length
djm@openbsd.org [Mon, 29 Jun 2026 02:08:55 +0000 (02:08 +0000)] 
upstream: Fix bounds checking when signing messages of length

greater than will fit in a size_t. In OpenSSH, messages sizes are bounded by
SSHBUF_SIZE_MAX so this was unreachable. From Swival scanner.

OpenBSD-Commit-ID: 31ab874abe21a528fa995d78023c5ad9444a31e1

5 weeks agoupstream: fix ECDSA order check for curves with cofactor != 1. All
djm@openbsd.org [Mon, 29 Jun 2026 01:58:29 +0000 (01:58 +0000)] 
upstream: fix ECDSA order check for curves with cofactor != 1. All

supported EC curves have cofactor 1, so this is a nop. From Swival scanner

OpenBSD-Commit-ID: 4ae44cc97714fcb6d19fa56714ede56c1ef521e1

5 weeks agoupstream: avoid situation where sftp_download() could get stuck in
djm@openbsd.org [Mon, 29 Jun 2026 01:53:21 +0000 (01:53 +0000)] 
upstream: avoid situation where sftp_download() could get stuck in

a loop if a broken server repeatedly returned zero length while reading a
file. Identified by Swival scanner

OpenBSD-Commit-ID: 53f1de5065ff01952d2abb51747c2418ce21cd96

5 weeks agoupstream: avoid download to server-controlled path when performing
djm@openbsd.org [Mon, 29 Jun 2026 01:47:21 +0000 (01:47 +0000)] 
upstream: avoid download to server-controlled path when performing

download on the commandline. From Swival scanner

OpenBSD-Commit-ID: d1b2c44305fdfe6d51eed9ecc727e59478bf311f

5 weeks agoupstream: resist that return ".." via remote glob during
djm@openbsd.org [Sun, 28 Jun 2026 23:47:16 +0000 (23:47 +0000)] 
upstream: resist that return ".." via remote glob during

remote/remote copies, similar to fixes for bz3871 for remote/local copies.
From Swival scanner

OpenBSD-Commit-ID: c0c20a1b746db55c08e53658bf21ea9405b300a5

5 weeks agoupstream: avoid possible NULL deref; from Swival scanner
djm@openbsd.org [Sun, 28 Jun 2026 23:31:28 +0000 (23:31 +0000)] 
upstream: avoid possible NULL deref; from Swival scanner

OpenBSD-Commit-ID: 62ea8e12b7cddee933596e72f8ab0f7364147c0f