Fix CVE-2024-6387 patch

This commit is contained in:
Andrew Lukoshko 2024-07-01 17:28:42 +00:00
parent 70bab4b00f
commit 872410a55b

View File

@ -1,30 +1,31 @@
From 0e3e0757b4fba0799f045594ad03cb55fb21560a Mon Sep 17 00:00:00 2001
From: Jonathan Wright <jonathan@almalinux.org>
Date: Mon, 1 Jul 2024 08:41:24 -0500
Subject: [PATCH] fix CVE-2024-6387
From c5e8a80082efd50234a26b5af28f437f4e54b6a3 Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Mon, 1 Jul 2024 13:53:00 +0000
Subject: [PATCH] Fix CVE-2024-6387
---
log.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/log.c b/log.c
index 42c6f9a..679c527 100644
index a2f9c75..4f04713 100644
--- a/log.c
+++ b/log.c
@@ -448,12 +448,14 @@ void
@@ -455,12 +455,14 @@ void
sshsigdie(const char *file, const char *func, int line, int showfunc,
LogLevel level, const char *suffix, const char *fmt, ...)
{
+#if 0
va_list args;
va_start(args, fmt);
sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_FATAL,
suffix, fmt, args);
va_end(args);
va_list args;
va_start(args, fmt);
sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_FATAL,
suffix, fmt, args);
va_end(args);
+#endif
_exit(1);
_exit(1);
}
--
2.43.5
--
2.45.2