[openssh-commits] [openssh] 01/03: upstream: avoid use-after-free in update_krl_from_file() found with
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Sep 29 13:25:09 AEST 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit b1c4bf5c2f1c2b30698dbaadc5d823862213f1fc
Author: jsg at openbsd.org <jsg at openbsd.org>
AuthorDate: Thu Sep 25 12:52:21 2025 +0000
upstream: avoid use-after-free in update_krl_from_file() found with
clang scan-build, ok dtucker@
OpenBSD-Commit-ID: 8ec86eca573740c94d5bc7e252959174555f4eb8
---
ssh-keygen.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 110d07fc1..d450f3e41 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.483 2025/09/25 07:04:38 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.484 2025/09/25 12:52:21 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -2321,6 +2321,8 @@ update_krl_from_file(struct passwd *pw, const char *file, int wild_ca,
blob, blen)) != 0)
fatal_fr(r, "revoke key failed");
free(blob);
+ blob = NULL;
+ blen = 0;
} else {
if (strncasecmp(cp, "key:", 4) == 0) {
cp += 4;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list