Bug 2167636 (CVE-2023-25136)

Summary: CVE-2023-25136 openssh: the functions order_hostkeyalgs() and list_hostkey_types() leads to double-free vulnerability
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dbelyavs, jjelen, psampaio
Target Milestone: ---Keywords: Reopened, Security, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the OpenSSH server (sshd), which introduced a double-free vulnerability during options.kex_algorithms handling. An unauthenticated attacker can trigger the double-free in the default configuration.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 19:43:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2173667, 2173668, 2173669, 2186473, 2186474    
Bug Blocks: 2166917, 2166920    

Description Sandipan Roy 2023-02-07 06:48:46 UTC
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 triggered by an unauthenticated attacker in the default configuration; however, the vulnerability discoverer reports that "exploiting this vulnerability will not be easy."

https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/017_sshd.patch.sig
https://bugzilla.mindrot.org/show_bug.cgi?id=3522
https://github.com/openssh/openssh-portable/commit/486c4dc3b83b4b67d663fb0fa62bc24138ec3946
https://www.openwall.com/lists/oss-security/2023/02/02/2

Comment 2 Dmitry Belyavskiy 2023-02-07 07:57:10 UTC
We don't have 9.1 neither in RHEL nor in Fedora so it's hardly relevant for us

Comment 3 Sandipan Roy 2023-02-07 07:59:14 UTC
(In reply to Dmitry Belyavskiy from comment #2)
> We don't have 9.1 neither in RHEL nor in Fedora so it's hardly relevant for
> us

Yes, All our Products are already marked as Not Affected and the CVE Page entry updated as well.

Comment 4 Product Security DevOps Team 2023-02-10 02:36:48 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-25136

Comment 5 Dmitry Belyavskiy 2023-02-27 15:11:46 UTC
Roy, could you please check whether it's just a self-DoS or it can be exploited via https://seclists.org/oss-sec/2023/q1/92 or smth similar?

Comment 8 Dmitry Belyavskiy 2023-02-27 16:21:49 UTC
If it is a self-DoS, why does the presence of public exploit matter?

Comment 9 Sandipan Roy 2023-03-02 07:29:53 UTC
*** Bug 2166785 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2023-05-09 11:05:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2645 https://access.redhat.com/errata/RHSA-2023:2645

Comment 13 Product Security DevOps Team 2023-05-09 19:43:06 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-25136