1. CVE archive
  2. 2007
  3. CVE-2007-3798

CVE-2007-3798

9.8 Critical severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critical

Description

Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows remote attackers to execute arbitrary code via crafted TLVs in a BGP packet, related to an unchecked return value.

Affected products

VendorProductVersionPlatform
apple mac os x >= 10.0.0 < 10.4.11 –
apple mac os x server >= 10.0.0 < 10.4.11 –
canonical ubuntu linux 6.06 –
canonical ubuntu linux 6.10 –
canonical ubuntu linux 7.04 –
debian debian linux 3.1 –
debian debian linux 4.0 –
freebsd freebsd >= 5.0 < 5.5 –
freebsd freebsd >= 6.0 < 6.1 –
freebsd freebsd 5.5 –
freebsd freebsd 5.5 p1 –
freebsd freebsd 5.5 p11 –
freebsd freebsd 5.5 p12 –
freebsd freebsd 5.5 p13 –
freebsd freebsd 5.5 p14 –
freebsd freebsd 5.5 p2 –
freebsd freebsd 5.5 p3 –
freebsd freebsd 5.5 p4 –
freebsd freebsd 5.5 p5 –
freebsd freebsd 5.5 p7 –
freebsd freebsd 5.5 p8 –
freebsd freebsd 5.5 p9 –
freebsd freebsd 6.1 –
freebsd freebsd 6.1 p1 –
freebsd freebsd 6.1 p10 –
freebsd freebsd 6.1 p11 –
freebsd freebsd 6.1 p12 –
freebsd freebsd 6.1 p13 –
freebsd freebsd 6.1 p16 –
freebsd freebsd 6.1 p17 –
freebsd freebsd 6.1 p18 –
freebsd freebsd 6.1 p2 –
freebsd freebsd 6.1 p4 –
freebsd freebsd 6.1 p6 –
freebsd freebsd 6.1 p7 –
freebsd freebsd 6.1 p9 –
freebsd freebsd 6.2 –
freebsd freebsd 6.2 p1 –
freebsd freebsd 6.2 p4 –
freebsd freebsd 6.2 p5 –
freebsd freebsd 6.2 p6 –
slackware slackware 9.0 –
slackware slackware 9.1 –
slackware slackware 10.0 –
slackware slackware 10.1 –
slackware slackware 10.2 –
slackware slackware 11.0 –
slackware slackware 12.0 –
tcpdump tcpdump <= 3.9.6 –
All 172 Tcpdump vulnerabilities

Vulnerability type

CWE-252 Unchecked Return Value

The product does not check the return value from a method or function.

Impact on systems

ScopeImpact
Availability, Integrity Unexpected State, Varies by Context, DoS: Crash, Exit, or Restart
The product could be prevented from detecting unexpected states and conditions, placing the product into a state that could lead to a crash or other unintended behaviors.
Access Control Bypass Protection Mechanism
If the method/function is used for a protection mechanism, then an unchecked return value could prevent the code from being able to see if the protection mechanism fails. For example, if the program calls a function to drop privileges but does not check the return code to ensure that privileges were successfully dropped, then the program will continue to operate with the higher privileges.

How to prevent it

Implementation Check the results of all functions that return a value and verify that the value is expected.
Implementation For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Implementation Ensure that you account for all possible return values from the function.
Implementation When designing a function, make sure you return a value or throw an exception in case of an error.

All 201 CWE-252 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org