Double Free in OpenSSH - CVE-2023-25136

 

Double Free in OpenSSH - CVE-2023-25136

Published: February 2, 2023 / Updated: July 26, 2024


Vulnerability identifier: #VU71771
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-25136
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to potentially execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the sshd(8) daemon. A remote non-authenticated attacker can send  specially crafted data to the application, trigger a double free error and execute arbitrary code on the target system.

The vendor believes exploitation of this vulnerability has limitations as double free occurs "in the unprivileged pre-auth process that is subject to chroot(2) and is further sandboxed on most major platforms". Nevertheless we assign a high risk to this vulnerability.


Affected software

OpenSSH
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
FreeBSD
Slackware Linux
openEuler
Anolis OS
Fedora
Oracle Healthcare Translational Research
Red Hat OpenShift Container Platform
pam_ssh_agent_auth
openssh (Red Hat package)
openssh
openssh-askpass
openssh-clients
openssh-keycat
openssh-server
openssh-doc
OpenShift Data Foundation (formerly OpenShift Container Storage)
IBM Spectrum Protect Plus Container Backup and Restore for Kubernetes
IBM Spectrum Protect Plus Container Backup and Restore for OpenShift

How to mitigate CVE-2023-25136

Install updates from vendor's website.

OpenSSH - update to 9.2p1
Red Hat OpenShift Container Platform - update to 4.13.2
pam_ssh_agent_auth - addressed in versions 0.10.4-4.16, 0.10.4-4.17, 0.10.4-4.18
pam_ssh_agent_auth - update to 0.10.4-7.9
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.13.0
openssh (Red Hat package) - update to 8.7p1-29.el9_2
openssh - addressed in versions 8.8p1-10.fc37, 9.0p1-15.fc38
openssh - update to 9.0p1-9
openssh-askpass - update to 9.0p1-9
openssh-clients - update to 9.0p1-9
openssh-keycat - update to 9.0p1-9
openssh-server - update to 9.0p1-9
openssh-doc - update to 9.0p1-9
openssh - update to 9.2p1
IBM Spectrum Protect Plus Container Backup and Restore for Kubernetes - update to 10.1.12.4
IBM Spectrum Protect Plus Container Backup and Restore for OpenShift - update to 10.1.12.4

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins