CVE-2016-7922
Critical · 9.8CVSS
9.8
EPSS
3.2%
Published
Jan 28, 2017
CISA due date
—
Cloudanix analysis
A flaw in network analysis software lets attackers potentially take control of systems by sending specially crafted data packets over the network.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in the AH parser (print-ah.c:ah_print) allows memory corruption when processing malformed network packets.
Why it matters to the business
Remote attackers may crash the packet capture process or execute arbitrary code on systems running vulnerable network analysis tools, disrupting monitoring and potentially leading to broader system compromise in environments reliant on traffic inspection.
How an attack unfolds
An attacker sends crafted network packets containing oversized or malformed Authentication Header data to a network segment where tcpdump is actively capturing traffic; the parser overflows a buffer during decoding, enabling memory corruption that can be leveraged for code execution.
How to fix it
Upgrade tcpdump to version 4.9.0 or later on all affected systems; apply vendor patches promptly given the high severity and remote exploitability.
How to confirm the fix worked
Run 'tcpdump --version' to confirm the installed version is 4.9.0 or newer; test parsing of sample AH packets in a controlled environment to verify stability.
Typical attack path
- Craft malicious network packets with malformed AH headers
- Transmit packets to the monitored network segment
- tcpdump processes the packets during live capture
- Buffer overflow occurs in the AH parser
- Memory corruption leads to denial of service or arbitrary code execution
How to detect it
Monitor system and application logs for unexpected tcpdump process crashes or segmentation faults during packet capture; review network traffic captures for repeated malformed AH packets around the time of any incidents.
What your security team should do
- Upgrade tcpdump to 4.9.0 or newer across the environment immediately
- Restrict tcpdump usage to trusted networks only until patched
- Review and update network monitoring tools to current supported releases
The record
The AH parser in tcpdump before 4.9.0 has a buffer overflow in print-ah.c:ah_print().
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.11 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.12 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.13 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.14 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.15 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.16 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.17 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.18 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.19 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.2 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.20 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.21 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.22 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.3 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.4 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.5 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.6 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.7 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.8 | tcpdump | 0 | 4.9.0-r0 |
| Alpine:v3.9 | tcpdump | 0 | 4.9.0-r0 |
| Debian:11 | tcpdump | 0 | 4.9.0-1 |
| Debian:12 | tcpdump | 0 | 4.9.0-1 |
| Debian:13 | tcpdump | 0 | 4.9.0-1 |
| Debian:7 | tcpdump | 0 | 4.9.0-1~deb7u1 |
| Debian:8 | tcpdump | 0 | 4.9.0-1~deb8u1 |
| Mageia:5 | libpcap | 0 | 1.8.1-1.mga5 |
| Mageia:5 | tcpdump | 0 | 4.9.0-1.mga5 |
| Red Hat:enterprise_linux:7::client | tcpdump | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::client | tcpdump-debuginfo | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::computenode | tcpdump | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::computenode | tcpdump-debuginfo | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::server | tcpdump | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::server | tcpdump-debuginfo | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::workstation | tcpdump | 0 | 14:4.9.0-5.el7 |
| Red Hat:enterprise_linux:7::workstation | tcpdump-debuginfo | 0 | 14:4.9.0-5.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Server 11 SP4 | tcpdump | 0 | 3.9.8-1.29.1 |
| SUSE:Linux Enterprise Server 12 SP1 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Server 12 SP1 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Server 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Server 12 SP2 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | tcpdump | 0 | 3.9.8-1.29.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | tcpdump | 0 | 4.9.0-13.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP1 | libpcap | 0 | 1.8.1-9.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP2 | libpcap | 0 | 1.8.1-9.1 |
| Ubuntu:14.04:LTS | tcpdump | 0 | 4.9.0-1ubuntu1~ubuntu14.04.1 |
| Ubuntu:16.04:LTS | tcpdump | 0 | 4.9.0-1ubuntu1~ubuntu16.04.1 |
| openSUSE:Tumbleweed | tcpdump | 0 | 4.99.1-1.2 |
Related vulnerabilities
- CVE-2017-16808 tcpdump before 4.9.3 has a heap-based buffer over-read related to aoe_print in… Also affects tcpdump
- CVE-2017-11108 tcpdump 4.9.0 allows remote attackers to cause a denial of service (heap-based buffer… Also affects tcpdump
- CVE-2015-2153 The rpki_rtr_pdu_print function in print-rpki-rtr.c in the TCP printer in tcpdump before… Also affects tcpdump
- CVE-2015-0261 Integer signedness error in the mobility_opt_print function in the IPv6 mobility printer… Also affects tcpdump
- CVE-2014-8768 Multiple Integer underflows in the geonet_print function in tcpdump 4.5.0 through 4.6.2… Also affects tcpdump
- CVE-2014-8767 Integer underflow in the olsr_print function in tcpdump 3.9.6 through 4.6.2, when in… Also affects tcpdump
- CVE-2007-3798 Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows… Also affects tcpdump
- CVE-2005-1267 The bgp_update_print function in tcpdump 3.x does not properly handle a -1 return value… Also affects tcpdump