[openssh-commits] [openssh] 14/18: upstream: when choosing a channel for the server to sent
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Nov 25 19:56:09 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 7256a32bc138e12163a684cffad3f19d3a42e189
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Wed Nov 25 08:31:58 2026 +0000
upstream: when choosing a channel for the server to sent
ClientAlive probes to, disregard channels that are in half-close state, as
these won't reply can cause the probes to never get a response. This could be
used to construct a DoS in fairly farfetched circumstances.
Anthropic ANT-2026-IFTX0I2F
OpenBSD-Commit-ID: 6471d9088343be528ee34563a71c04554dada3e2
---
channels.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/channels.c b/channels.c
index 4ac7d98ee..40ee0d640 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.478 2026/10/30 07:30:52 djm Exp $ */
+/* $OpenBSD: channels.c,v 1.479 2026/11/25 08:31:58 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -1077,6 +1077,9 @@ channel_find_open(struct ssh *ssh)
c = ssh->chanctxt->channels[i];
if (c == NULL || !c->have_remote_id)
continue;
+ /* peer will not reply to requests on a channel being closed */
+ if ((c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD)) != 0)
+ continue;
switch (c->type) {
case SSH_CHANNEL_CLOSED:
case SSH_CHANNEL_DYNAMIC:
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list