CVE-2016-0778
The (1) roaming_read and (2) roaming_write functions in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2, when…
Check your servers for CVE-2016-0778
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-0778 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
The (1) roaming_read and (2) roaming_write functions in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2, when certain proxy and forward options are enabled, do not properly maintain connection file descriptors, which allows remote servers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact by requesting many forwardings.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 20.8%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.0% of all scored CVEs. Scores of 27 Nov 2026.
The assessment of CISA (SSVC, 29 May 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-0778 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-0778RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-0778Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2016-0778
trivy image --scanners vuln IMAGE | grep CVE-2016-0778
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- SUSE-SU-2016:0117 lists.opensuse.org · vendor advisory
- APPLE-SA-2016-03-21-5 lists.apple.com · vendor advisory
- FEDORA-2016-4556904561 lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2016:0128 lists.opensuse.org · vendor advisory
- FEDORA-2016-2e89eba0c1 lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2016:0127 lists.opensuse.org · vendor advisory
- GLSA-201601-01 security.gentoo.org · vendor advisory
- SUSE-SU-2016:0119 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:0118 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:0120 lists.opensuse.org · vendor advisory
- USN-2869-1 ubuntu.com · vendor advisory
- DSA-3446 debian.org · vendor advisory
Other references
- https://blogs.sophos.com/2016/02/17/utm-up2date-9-354-released/ blogs.sophos.com
- https://blogs.sophos.com/2016/02/29/utm-up2date-9-319-released/ blogs.sophos.com
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05247375 h20566.www2.hpe.com
- 20160114 Qualys Security Advisory - Roaming through the OpenSSH client: CVE-2016-0777 and CVE-2016-0778 securityfocus.com · mailing list
- https://support.apple.com/HT206167 support.apple.com
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10734 kb.juniper.net
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05385680 h20566.www2.hpe.com
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html oracle.com
- http://www.openssh.com/txt/release-7.1p2 openssh.com
- 80698 securityfocus.com · vdb entry
- https://bto.bluecoat.com/security-advisory/sa109 bto.bluecoat.com
- 1034671 securitytracker.com · vdb entry
7 more
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722 h20566.www2.hpe.com
- [oss-security] 20160114 Qualys Security Advisory - Roaming through the OpenSSH client: CVE-2016-0777 and CVE-2016-0778 openwall.com · mailing list
- 20160115 Qualys Security Advisory - Roaming through the OpenSSH client: CVE-2016-0777 and CVE-2016-0778 seclists.org · mailing list
- http://packetstormsecurity.com/files/135273/Qualys-Security-Advisory-OpenSSH-Overflow-Leak.html packetstormsecurity.com
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05356388 h20566.www2.hpe.com
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html oracle.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf cert-portal.siemens.com
Source: the record CVE-2016-0778 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse