lmp_print in tcpdump lacks certain boundary checks
Description
Missing bounds checks in tcpdump's LMP parser before 4.9.3 allow out-of-bounds reads via crafted packets, leading to crash or info disclosure.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Missing bounds checks in tcpdump's LMP parser before 4.9.3 allow out-of-bounds reads via crafted packets, leading to crash or info disclosure.
Vulnerability
In tcpdump versions prior to 4.9.3, the lmp_print_data_link_subobjs() function in print-lmp.c lacks bounds checks when parsing LMP data link subobjects. This allows out-of-bounds reads when processing crafted packets [4].
Exploitation
An attacker can send a specially crafted LMP packet over the network to a system running a vulnerable version of tcpdump. No authentication or special privileges are required; the attacker only needs to be able to send packets to the network interface being monitored. The victim's tcpdump process will read beyond allocated memory bounds.
Impact
Successful exploitation may cause tcpdump to crash (denial of service) or leak sensitive memory contents (information disclosure). The added bounds checks in the fix prevent these out-of-bounds accesses [4].
Mitigation
The vulnerability is fixed in tcpdump version 4.9.3, released on October 5, 2019. Users should upgrade to version 4.9.3 or later [4].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
11- tcpdump/tcpdumpdescription
- osv-coords9 versionspkg:rpm/opensuse/tcpdump&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/tcpdump&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/tcpdump&distro=openSUSE%20Tumbleweedpkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/tcpdump&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5
< 4.9.2-lp150.10.1+ 8 more
- (no CPE)range: < 4.9.2-lp150.10.1
- (no CPE)range: < 4.9.2-lp151.4.6.1
- (no CPE)range: < 4.99.1-1.2
- (no CPE)range: < 4.9.2-3.9.1
- (no CPE)range: < 4.9.2-3.9.1
- (no CPE)range: < 3.9.8-1.30.13.1
- (no CPE)range: < 3.9.8-1.30.13.1
- (no CPE)range: < 4.9.2-14.17.1
- (no CPE)range: < 4.9.2-14.17.1
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"Missing bounds checks in lmp_print_data_link_subobjs() allow reading beyond captured packet data."
Attack vector
An attacker can craft a malformed LMP packet with truncated sub-objects that cause `lmp_print_data_link_subobjs()` to read beyond the captured packet data [ref_id=1]. The function reads sub-object fields (e.g., switching type, encoding type, wavelength, bandwidth) without first checking that the required bytes are present in the snapshot [ref_id=1]. When the packet is shorter than expected, the missing bounds checks lead to an out-of-bounds read, which can crash tcpdump or leak memory [ref_id=1]. The attacker only needs to send a single crafted UDP packet to a target running tcpdump and capturing LMP traffic.
Affected code
The vulnerability is in the `lmp_print_data_link_subobjs()` function in `print-lmp.c` [ref_id=1]. The function iterates over sub-objects in an LMP Data Link object but lacks bounds checks before reading fields such as sub-object type, length, switching type, encoding type, and bandwidth values [ref_id=1]. The patch adds `ND_TCHECK_*` macros at multiple read points to ensure the captured packet data is long enough before extraction [ref_id=1].
What the fix does
The patch adds `ND_TCHECK_16BITS`, `ND_TCHECK_8BITS`, and `ND_TCHECK_32BITS` calls before each field read in `lmp_print_data_link_subobjs()` [ref_id=1]. These macros verify that the specified number of bytes are available within the captured packet boundary before the data is extracted [ref_id=1]. If the check fails, control jumps to the `trunc` label, which now prints `[|LMP]` instead of the misleading `"packet exceeded snapshot"` message [ref_id=1]. This prevents out-of-bounds reads from truncated packets.
Preconditions
- configTarget must be running a vulnerable version of tcpdump (before 4.9.3) and capturing LMP traffic
- networkAttacker must be able to send a crafted UDP packet containing a malformed LMP Data Link sub-object to the target
Generated on May 27, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
16- lists.opensuse.org/opensuse-security-announce/2019-10/msg00050.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2019-10/msg00053.htmlmitrevendor-advisoryx_refsource_SUSE
- 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.debian.org/security/2019/dsa-4547mitrevendor-advisoryx_refsource_DEBIAN
- seclists.org/fulldisclosure/2019/Dec/26mitremailing-listx_refsource_FULLDISC
- github.com/the-tcpdump-group/tcpdump/blob/tcpdump-4.9/CHANGESmitrex_refsource_MISC
- github.com/the-tcpdump-group/tcpdump/commit/0b661e0aa61850234b64394585cf577aac570bf4mitrex_refsource_CONFIRM
- lists.debian.org/debian-lts-announce/2019/10/msg00015.htmlmitremailing-listx_refsource_MLIST
- seclists.org/bugtraq/2019/Dec/23mitremailing-listx_refsource_BUGTRAQ
- seclists.org/bugtraq/2019/Oct/28mitremailing-listx_refsource_BUGTRAQ
- security.netapp.com/advisory/ntap-20200120-0001/mitrex_refsource_CONFIRM
- support.apple.com/kb/HT210788mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.