CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
1–10 of 82 posts
Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#2Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#3Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#4Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#5Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#6Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#7The risk you take when you use a distribution that modifies upstream. Debian has had similar issues in the past (maybe not CVEs, but certainly packager-created bugs).
Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#8For clarification, the bug is in a patch applied by red hat, not in openssh itself.
> cleanup_exit() was not meant to be called from a signal handler [...] Fedora 38+ has moved to newer upstream OpenSSH that doesn't have the problematic cleanup_exit() call.
> This extra problematic logic only existed in upstream OpenSSH(-portable) for ~9 months
The fix also doesn't touch the Red Hat-specific code:
diff -urp openssh-8.7p1-38.el9_4.1-tree.orig/sshd.c openssh-8.7p1-38.el9_4.1-tree/sshd.c
--- openssh-8.7p1-38.el9_4.1-tree.orig/sshd.c 2024-07-08 03:42:51.431994307 +0200
+++ openssh-8.7p1-38.el9_4.1-tree/sshd.c 2024-07-08 03:48:13.860316451 +0200
@@ -384,7 +384,7 @@ grace_alarm_handler(int sig)
/* Log error and exit. */
if (use_privsep && pmonitor != NULL && pmonitor->m_pid
They suggest applying it even on non Red Hat distros.Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#9Couldn't this entire class of bug be solved by annotating signal handlers in the source code and checking at compile time that anything called from a signal handler is async-signal-safe?
Ultimately it's an example of an invariant where it's clear that programmers can't be trusted to uphold it. In this case, the consequences can be very significant.
Re: CVE-2024-6409: OpenSSH: Possible remote code execution in privsep child
#10The risk you take when you use a distribution that modifies upstream. Debian has had similar issues in the past (maybe not CVEs, but certainly packager-created bugs).