[openssh-commits] [openssh] 01/02: upstream: some extra paranoia, reminded by jsg@
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Sep 25 11:34:06 AEST 2024
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 9517cc58577f85a0ba5f8bb46778dff625f0688f
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Sep 24 02:28:17 2024 +0000
upstream: some extra paranoia, reminded by jsg@
OpenBSD-Commit-ID: 22072bfa1df1391858ae7768a6c627e08593a91e
---
ssh-agent.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ssh-agent.c b/ssh-agent.c
index d35741a8..08646b76 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.306 2024/03/09 05:12:13 djm Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.307 2024/09/24 02:28:17 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -1703,6 +1703,10 @@ process_ext_session_bind(SocketEntry *e)
error_fr(r, "parse");
goto out;
}
+ if (sshbuf_len(sid) > AGENT_MAX_SID_LEN) {
+ error_f("session ID too long");
+ goto out;
+ }
if ((fp = sshkey_fingerprint(key, SSH_FP_HASH_DEFAULT,
SSH_FP_DEFAULT)) == NULL)
fatal_f("fingerprint failed");
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list