CVE-2017-5495
All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.
What to do
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | quagga | Fixed | 0.99.24.1-2ubuntu1.3 | UBUNTU-CVE-2017-5495 |
| Ubuntu 14.04 | quagga | Fixed | 0.99.22.4-3ubuntu1.4 | UBUNTU-CVE-2017-5495 |
| Red Hat Enterprise Linux 7 | quagga | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | quagga-contrib | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | quagga-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | quagga | Fixed | 0:0.99.15-14.el6 | RHSA-2017:0794 |
| Red Hat Enterprise Linux 6 | quagga-contrib | Fixed | 0:0.99.15-14.el6 | RHSA-2017:0794 |
| Red Hat Enterprise Linux 6 | quagga-devel | Fixed | 0:0.99.15-14.el6 | RHSA-2017:0794 |
| Red Hat Enterprise Linux 5 | quagga | Will not fix Will not fix | ||
| Alpine Linux 3.24 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.23 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.22 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.21 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.20 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.19 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.18 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.17 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.16 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.15 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.14 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.13 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.12 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.11 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.10 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.9 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.8 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.7 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.6 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
| Alpine Linux 3.5 | quagga | Fixed | 1.1.1-r0 | ALPINE-CVE-2017-5495 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2017-0794.html (vendor-advisory)
References
- http://rhn.redhat.com/errata/RHSA-2017-0794.html
- http://savannah.nongnu.org/forum/forum.php?forum_id=8783
- https://github.com/freerangerouting/frr/pull/63
- http://www.securitytracker.com/id/1037688
- https://lists.quagga.net/pipermail/quagga-dev/2017-January/016586.html
- http://www.securityfocus.com/bid/95745
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.