CVE-2017-5495: Quagga and FRRouting unbounded memory allocation in vty CLI

CVE-2017-5495 · Severity: high · CVSS 7.5 · Published 2017-01-24

Quagga is a software suite used to manage network routing protocols like BGP and OSPF. A vulnerability in its management interface allows an unauthenticated attacker to crash the routing service or the entire server by sending specially crafted, long text strings. This can lead to a complete loss of network connectivity and service availability for the affected infrastructure.

Technologies: Frrouting. Vendors: Frrouting.

Quick answers

Is CVE-2017-5495 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2017-5495 being exploited in the wild.
How severe is CVE-2017-5495?
High severity, with a CVSS score of 7.5, published 24 January 2017.
Which products and versions are affected?
Frrouting Prior to 2017-01-10.
Is there a fix for CVE-2017-5495?
A patch was published on 2017-01-10: FRRouting fix merged Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2017-5495 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2017-5495?
Check whether you run Frrouting or Quagga at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A vulnerability exists in the 'vty' telnet CLI component of Quagga and early versions of FRRouting due to improper restriction of memory buffer operations (CWE-119). The input buffer for the telnet interface is designed to grow automatically without a hard limit until a newline character is received. An unauthenticated remote attacker with network access to the TCP ports used by Quagga daemons can send an extremely long string without a newline, causing the process to allocate all available system memory. This results in the daemon being killed by the OOM (Out of Memory) killer or a total system crash. The issue is resolved in Quagga 1.1.1 and FRR 2017-01-10 by implementing a 4096-byte cap on the vty buffer.

Affected products

  • Quagga Quagga 0.93 through 1.1.0
  • FRRouting FRRouting (FRR) Protocol Suite Prior to 2017-01-10

Timeline

  • 2017-01-10: patched: FRRouting fix merged
  • 2017-01-24: disclosed: Public disclosure of CVE-2017-5495
  • 2017-01-24: advisory: NVD published date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.