CVE-2023-25136
openssh: the functions order_hostkeyalgs() and list_hostkey_types() leads to double-free vulnerability
Overview
Description
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. This is fixed in OpenSSH 9.2. The double free can be leveraged, by an unauthenticated remote attacker in the default configuration, to jump to any location in the sshd address space. One third-party report states "remote code execution is theoretically possible."
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness: CWE-415
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | OpenSSH_jll | >=8.9.0+0, <9.1.0+0 | 9.1.0+0 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
Oracle Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | pam-ssh-agent-auth | 0.10.4-5.29.el9_2 |
| 9 | openssh +4 | 8.7p1-29.el9_2 |
Red Hat 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 9 | pam-ssh-agent-auth | 0:0.10.4-5.29.el9_2 | RHSA-2023:2645 |
| 9 | openssh +4 | 0:8.7p1-29.el9_2 | RHSA-2023:2645 |
alma 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | pam-ssh-agent-auth | 0.10.4-5.29.el9_2 |
| 9 | openssh +4 | 8.7p1-29.el9_2 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 9.2_p1-r0 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | openssh | 1:9.2p1-1 |
| 13 | openssh | 1:9.2p1-1 |
| 14 | openssh | 1:9.2p1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 1:9.2p1-1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-openssh | 1:9.2p1-1 |
| 13 | rootio-openssh | 1:9.2p1-1 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 9.2_p1-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/02/13/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/02/22/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/02/22/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/02/23/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/03/06/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/03/09/2
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:2645
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-25136
- bugzilla.mindrot.org https://bugzilla.mindrot.org/show_bug.cgi?id=3522
- bugzilla.redhat.com https://bugzilla.redhat.com/2167636
Show all 25 references
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-2645.html
- ftp.openbsd.org https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/017_sshd.patch.sig
- github.com https://github.com/openssh/openssh-portable/commit/486c4dc3b83b4b67d663fb0fa62bc24138ec3946
- jfrog.com https://jfrog.com/blog/openssh-pre-auth-double-free-cve-2023-25136-writeup-and-proof-of-concept/
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-25136.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-2645.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JGAUIXJ3TEKCRKVWFQ6GDAGQFTIIGQQP/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R7LKQDFZWKYHQ65TBSH2X2HJQ4V2THS3/
- news.ycombinator.com https://news.ycombinator.com/item?id=34711565
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-25136
- security.gentoo.org https://security.gentoo.org/glsa/202307-01
- security.netapp.com https://security.netapp.com/advisory/ntap-20230309-0003/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-25136
- www.openwall.com https://www.openwall.com/lists/oss-security/2023/02/02/2
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.