CVE-2018-19519
Description
In tcpdump 4.9.2, uninitialized buffer in print_prefix leads to stack over-read via crafted HNCP packets.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In tcpdump 4.9.2, uninitialized buffer in print_prefix leads to stack over-read via crafted HNCP packets.
Vulnerability
A stack-based buffer over-read vulnerability exists in the print_prefix function of print-hncp.c in tcpdump 4.9.2. The function allocates a local buffer buf but does not initialize it. When processing specially crafted HNCP packets, execution enters an else branch that calls decode_prefix6, which may return -1 without writing to buf. The subsequent ND_PRINT("%s", buf) then reads beyond the buffer until a null byte, causing a buffer over-read. This issue is triggered by packets where the prefix field is 0xff, as documented in [3].
Exploitation
An attacker can cause a stack-based buffer over-read by sending a crafted HNCP packet (e.g., via a pcap file) to tcpdump. No prior authentication is required. The attacker must trick the victim into running tcpdump with the malicious packet, for example using tcpdump -r crafted.pcap. The specific conditions include a prefix value of 0xff and max_length satisfying the if-condition, leading to the vulnerable code path. The over-read occurs because buf remains uninitialized when decode_prefix6 returns -1 [3].
Impact
Successful exploitation can lead to a denial of service (crash) due to reading beyond the buffer boundary. In some cases, it may result in information disclosure (leaking stack memory) or potential arbitrary code execution, as noted in [2] where tcpdump crashes or possibly executes arbitrary code. The vulnerability has a CVSS base score based on the description (though not explicitly provided in the references).
Mitigation
The vulnerability is fixed in tcpdump version 4.9.3. Red Hat issued RHSA-2019:3976 [1] and Ubuntu released USN-4252-1 [2] which include the fix. Fedora updates are also available [4]. As a workaround, users can initialize buf[0] = '\0' in the source code as suggested in [3] before recompiling. Upgrading to tcpdump 4.9.3 or later is the recommended mitigation.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
9- osv-coords8 versionspkg:rpm/opensuse/tcpdump&distro=openSUSE%20Tumbleweedpkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4
< 4.99.1-1.2+ 7 more
- (no CPE)range: < 4.99.1-1.2
- (no CPE)range: < 4.9.2-14.8.1
- (no CPE)range: < 4.9.2-14.8.1
- (no CPE)range: < 4.9.2-3.3.1
- (no CPE)range: < 4.9.2-14.8.1
- (no CPE)range: < 4.9.2-14.8.1
- (no CPE)range: < 4.9.2-14.8.1
- (no CPE)range: < 4.9.2-14.8.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
9- access.redhat.com/errata/RHSA-2019:3976mitrevendor-advisoryx_refsource_REDHAT
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/62XY42U6HY3H2APR5EHNWCZ7SAQNMMJN/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNYXF3IY2X65IOD422SA6EQUULSGW7FN/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R2UDPOSGVJQIYC33SQBXMDXHH4QDSDMU/mitrevendor-advisoryx_refsource_FEDORA
- usn.ubuntu.com/4252-1/mitrevendor-advisoryx_refsource_UBUNTU
- usn.ubuntu.com/4252-2/mitrevendor-advisoryx_refsource_UBUNTU
- www.securityfocus.com/bid/106098mitrevdb-entryx_refsource_BID
- github.com/zyingp/temp/blob/master/tcpdump.mdmitrex_refsource_MISC
- kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44516mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.