Skip to content

Commit 00adcc7

Browse files
committed
A signal handler in sshd(8) calls a function that is not async-signal-safe.
The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default). This signal handler executes in the context of the sshd(8)'s privileged code, which is not sandboxed and runs with full root privileges. This issue is a regression of CVE-2006-5051 originally reported by Mark Dowd and accidentally reintroduced in OpenSSH 8.5p1. Obtained from: OpenSSH/FreeBSD
1 parent 9008029 commit 00adcc7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crypto/openssh/log.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,14 @@ void
451451
sshsigdie(const char *file, const char *func, int line, int showfunc,
452452
LogLevel level, const char *suffix, const char *fmt, ...)
453453
{
454+
#if 0
454455
va_list args;
455456

456457
va_start(args, fmt);
457458
sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_FATAL,
458459
suffix, fmt, args);
459460
va_end(args);
461+
#endif
460462
_exit(1);
461463
}
462464

crypto/openssh/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
#define SSH_PORTABLE "p2"
66
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
77

8-
#define SSH_VERSION_MIDNIGHTBSD "MidnightBSD-20231226"
8+
#define SSH_VERSION_MIDNIGHTBSD "MidnightBSD-20240701"

0 commit comments

Comments
 (0)