Use-after-free vulnerability in the mm_answer_pam_free_ctx function in monitor.c in sshd…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution, Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-416, CWE-264 and the CVSS impact.
Summary
Use-after-free vulnerability in the mm_answer_pam_free_ctx function in monitor.c in sshd in OpenSSH before 7.0 on non-OpenBSD platforms might allow local users to gain privileges by leveraging control of the sshd uid to send an unexpectedly early MONITOR_REQ_PAM_FREE_CTX request.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2016:0741 Released 2016-05-10 · Red Hat rating Moderateopenssh security, bug fix, and enhancement update
- Red Hat Enterprise Linux Desktop (v. 6) openssh-5.3p1-117.el6, openssh-askpass-5.3p1-117.el6, openssh-clients-5.3p1-117.el6 +1
- Red Hat Enterprise Linux Desktop Optional (v. 6) openssh-ldap-5.3p1-117.el6, pam_ssh_agent_auth-0.9.3-117.el6
- Red Hat Enterprise Linux HPC Node (v. 6) openssh-5.3p1-117.el6, openssh-clients-5.3p1-117.el6, openssh-server-5.3p1-117.el6
- Red Hat Enterprise Linux HPC Node Optional (v. 6) openssh-askpass-5.3p1-117.el6, openssh-ldap-5.3p1-117.el6, pam_ssh_agent_auth-0.9.3-117.el6
- Red Hat Enterprise Linux Server (v. 6) openssh-5.3p1-117.el6, openssh-askpass-5.3p1-117.el6, openssh-clients-5.3p1-117.el6 +1
- Red Hat Enterprise Linux Server Optional (v. 6) openssh-ldap-5.3p1-117.el6, pam_ssh_agent_auth-0.9.3-117.el6, pam_ssh_agent_auth-0.9.3-117.el6.ppc
- Red Hat Enterprise Linux Workstation (v. 6) openssh-5.3p1-117.el6, openssh-askpass-5.3p1-117.el6, openssh-clients-5.3p1-117.el6 +1
- Red Hat Enterprise Linux Workstation Optional (v. 6) openssh-ldap-5.3p1-117.el6, pam_ssh_agent_auth-0.9.3-117.el6
- RHSA-2015:2088 Released 2015-11-19 · Red Hat rating Moderateopenssh security, bug fix, and enhancement update
- Red Hat Enterprise Linux Client (v. 7) openssh-6.6.1p1-22.el7, openssh-askpass-6.6.1p1-22.el7, openssh-clients-6.6.1p1-22.el7 +2
- Red Hat Enterprise Linux Client Optional (v. 7) openssh-ldap-6.6.1p1-22.el7, openssh-server-sysvinit-6.6.1p1-22.el7, pam_ssh_agent_auth-0.9.3-9.22.el7
- Red Hat Enterprise Linux ComputeNode (v. 7) openssh-6.6.1p1-22.el7, openssh-clients-6.6.1p1-22.el7, openssh-keycat-6.6.1p1-22.el7 +1
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) openssh-askpass-6.6.1p1-22.el7, openssh-ldap-6.6.1p1-22.el7, openssh-server-sysvinit-6.6.1p1-22.el7 +1
- Red Hat Enterprise Linux Server (v. 7) openssh-6.6.1p1-22.el7, openssh-askpass-6.6.1p1-22.el7, openssh-clients-6.6.1p1-22.el7 +2
- Red Hat Enterprise Linux Server Optional (v. 7) openssh-askpass-6.6.1p1-22.el7, openssh-ldap-6.6.1p1-22.el7, openssh-server-sysvinit-6.6.1p1-22.el7 +2
- Red Hat Enterprise Linux Workstation (v. 7) openssh-6.6.1p1-22.el7, openssh-askpass-6.6.1p1-22.el7, openssh-clients-6.6.1p1-22.el7 +2
- Red Hat Enterprise Linux Workstation Optional (v. 7) openssh-ldap-6.6.1p1-22.el7, openssh-server-sysvinit-6.6.1p1-22.el7, pam_ssh_agent_auth-0.9.3-9.22.el7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 4 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:2088 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2016:0741 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2015:2088 |
Timeline
- 2026-10-02 Threatist record created from CVE-2015-6564
- 2026-10-03 Alias added: GHSA-cm6p-9f8w-c878
References
Advisory 5
Other 10
- [oss-security] 20150821 Re: CVE request - OpenSSH 6.9 PAM privilege separation vulnerabilities
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- https://kc.mcafee.com/corporate/index?page=content&id=SB10136
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- https://github.com/openssh/openssh-portable/commit/5e75f5198769056089fb06c4d738ab0e5abc66f7
- 20150813 BFS-SA-2015-002: OpenSSH PAM Privilege Separation Vulnerabilities
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- [debian-lts-announce] 20180910 [SECURITY] [DLA 1500-1] openssh security update
- https://www.broadcom.com/support/fibre-channel-networking/security-advisories/brocade-security-advisory-2019-764
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
More OpenBSD Openssh vulnerabilities
- TI-2023-19792 The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently… CVSS 3.1CRITICAL 9.8
- TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
- TI-2023-10601 OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during… CVSS 3.1MEDIUM 6.5
- TI-2018-11033 OpenSSH through 7.7 is prone to a user enumeration vulnerability due to not delaying… CVSS 3.1MEDIUM 5.9
- TI-2016-08105 Untrusted search path vulnerability in ssh-agent.c in ssh-agent in OpenSSH before 7.4… CVSS 3.1HIGH 7.3
- TI-2023-28040 In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host… CVSS 3.1MEDIUM 6.5
Sources
- CVE-2015-6564 · CVE Program
- CVE-2015-6564 · NVD
- FIRST EPSS
- GHSA-cm6p-9f8w-c878 · GitHub Advisory Database · CC BY 4.0
- CVE-2015-6564 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences