CVE-2016-7985: tcpdump buffer overflow in CALM FAST parser

CVE-2016-7985 · Severity: critical · CVSS 9.8 · Published 2017-01-28

tcpdump is a widely used command-line tool for monitoring and analyzing network traffic. A vulnerability in its CALM FAST protocol parser allows an attacker to trigger a buffer overflow by sending specially crafted network packets. This could lead to a complete system crash or potentially allow the attacker to execute malicious code on the system running the tool, impacting network visibility and security operations.

Technologies: Tcpdump. Vendors: Tcpdump.

Quick answers

Is CVE-2016-7985 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2016-7985 being exploited in the wild.
How severe is CVE-2016-7985?
Critical severity, with a CVSS score of 9.8, published 28 January 2017.
Which products and versions are affected?
tcpdump tcpdump before 4.9.0.
Is there a fix for CVE-2016-7985?
A patch was published on 2017-01-26: tcpdump 4.9.0 released fixing multiple vulnerabilities Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2016-7985 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2016-7985?
Check whether you run Tcpdump. 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 buffer overflow vulnerability exists in the CALM FAST protocol parser within tcpdump versions prior to 4.9.0. The flaw is located in the calm_fast_print() function in print-calm-fast.c and is triggered by improper bounds checking when processing network packets. An unauthenticated remote attacker can exploit this by sending specially crafted packets to a network segment where tcpdump is performing live capture, or by providing a malicious pcap file for analysis. Successful exploitation can result in a denial of service (application crash) or arbitrary code execution with the privileges of the tcpdump process. The issue is resolved in version 4.9.0.

Affected products

  • tcpdump tcpdump before 4.9.0

Timeline

  • 2017-01-26: patched: tcpdump 4.9.0 released fixing multiple vulnerabilities
  • 2017-01-27: advisory: NVD published CVE-2016-7985

References

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