From 872410a55b048a96ffd54a1a517988dfa87d2d44 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Mon, 1 Jul 2024 17:28:42 +0000 Subject: [PATCH] Fix CVE-2024-6387 patch --- SOURCES/openssh-8.7p1-CVE-2024-6387.patch | 31 ++++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/SOURCES/openssh-8.7p1-CVE-2024-6387.patch b/SOURCES/openssh-8.7p1-CVE-2024-6387.patch index d2de7eb..16a9625 100644 --- a/SOURCES/openssh-8.7p1-CVE-2024-6387.patch +++ b/SOURCES/openssh-8.7p1-CVE-2024-6387.patch @@ -1,30 +1,31 @@ -From 0e3e0757b4fba0799f045594ad03cb55fb21560a Mon Sep 17 00:00:00 2001 -From: Jonathan Wright -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 +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