Skip to content

Commit

Permalink
SECURITY: Race condition in sshd
Browse files Browse the repository at this point in the history
  • Loading branch information
UTsweetyfish committed Jul 1, 2024
1 parent d33a9b8 commit 5a2b79b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
openssh (1:9.7p1-4deepin2) unstable; urgency=high

* Disable logging in sshsigdie.
https://seclists.org/oss-sec/2024/q3/2

-- Tianyu Chen <[email protected]> Mon, 01 Jul 2024 17:13:27 +0800

openssh (1:9.7p1-4deepin1) unstable; urgency=medium

* Refresh and re-apply deepin patches:
Expand Down
17 changes: 17 additions & 0 deletions debian/patches/disable-logging-in-sshsigdie.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- a/log.c
+++ b/log.c
@@ -452,12 +452,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);
+#endif
_exit(1);
}

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ configure-cache-vars.patch
deepin-extra-version.patch
deepin-ssh-connect-idle-timeout.patch
deepin-ssh-keygen-privatekey-file-perm.patch
disable-logging-in-sshsigdie.patch

0 comments on commit 5a2b79b

Please sign in to comment.