Merge pull request #2078 from flatcar/sayan/update-openssh-flatcar-3510

net-misc/openssh: Backport patch for CVE-2024-6387
This commit is contained in:
Mathieu Tortuyaux 2024-07-01 23:06:06 +02:00 committed by GitHub
commit 78bf33e7ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1 @@
- openssh ([CVE-2024-6387](https://nvd.nist.gov/vuln/detail/CVE-2024-6387))

View File

@ -0,0 +1,34 @@
From 200e59c2d58b27906c07a98b33420dc92ebc5920 Mon Sep 17 00:00:00 2001
From: Sayan Chowdhury <schowdhury@microsoft.com>
Date: Mon, 1 Jul 2024 19:14:55 +0530
Subject: [PATCH] This applies upstream's backport suggestions from
https://marc.info/?l=oss-security&m=171982317624594&w=2 for both
CVE-2024-6387
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
---
log.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/log.c b/log.c
index 99bf046a7..10e41bde7 100644
--- a/log.c
+++ b/log.c
@@ -451,12 +451,14 @@ void
sshsigdie(const char *file, const char *func, int line, int showfunc,
LogLevel level, const char *suffix, const char *fmt, ...)
{
+#ifdef SYSLOG_R_SAFE_IN_SIGHAND
va_list args;
va_start(args, fmt);
sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_FATAL,
suffix, fmt, args);
va_end(args);
+#endif
_exit(1);
}
--
2.45.0

View File

@ -124,6 +124,7 @@ PATCHES=(
"${FILESDIR}/${PN}-8.9_p1-allow-ppoll_time64.patch" #834019
"${FILESDIR}/${PN}-8.9_p1-gss-use-HOST_NAME_MAX.patch" #834044
"${FILESDIR}/${PN}-9.1_p1-build-tests.patch"
"${FILESDIR}/${PN}-9.1_p1-CVE-2024-6387.patch"
)
pkg_pretend() {