Skip to content

Commit

Permalink
Merge pull request #90 from rapier1/dev_minor
Browse files Browse the repository at this point in the history
Resolve CVE aka regreSSHion bug.
  • Loading branch information
rapier1 authored Jul 2, 2024
2 parents 783d8b2 + ad1e018 commit 52bc5fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions clientloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,9 @@ obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout,
if (timespeccmp(&now, &chaff_until, >=)) {
/* Stop if there have been no keystrokes for a while */
stop_reason = "chaff time expired";
} else if (timespeccmp(&now, &next_interval, >=)) {
/* Otherwise if we were due to send, then send chaff */
} else if (timespeccmp(&now, &next_interval, >=) &&
!ssh_packet_have_data_to_write(ssh)) {
/* If due to send but have no data, then send chaff */
if (send_chaff(ssh))
nchaff++;
}
Expand Down
3 changes: 2 additions & 1 deletion log.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,13 @@ 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);
}

Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
#define SSH_VERSION "OpenSSH_9.7"

#define SSH_PORTABLE "p1"
#define SSH_HPN "-hpn18.4.1"
#define SSH_HPN "-hpn18.4.2"
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_HPN

0 comments on commit 52bc5fd

Please sign in to comment.