Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-misc/openssh: Backport patch for CVE-2024-6387 #2078

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/security/2024-07-01-openssh-9.1_p1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- openssh ([CVE-2024-6387](https://nvd.nist.gov/vuln/detail/CVE-2024-6387))
tormath1 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading