BF Specification of CVE-2013-4934 Wireshark v1.8.x before v1.8.9 and v1.10.x before v1.10.1

../../../../BF/images/BFCVE/CVE-2013-4934(simple)-0.png
Missing direct initialization of the 'netmon->frame_table' pointer to NULL leads to a wild pointer, which, when used for explicit deallocation of its object on the heap leads to a double deallocate (double free). If exploited, this can lead to denial of service (DOS) and more specifically application crash-- availability loss.

//generated// Missing Code (in ’netmon_open()’) to Direct Initialize Pointer ’netmon->frame_table = NULL;’ Heap Used (netmon->frame_table_size) in Codebase (wireshark-1.8.0/wiretap/netmon.c#L315) Userland leads to Wild Pointer (’netmon->frame_table')

, which propagates to Wild Pointer (in ‘g_free(netmon->frame_table);’) Explicit Deallocate (object) Heap Codebase (wireshark-1.8.0/wiretap/netmon.c#L944) in Userland that results in Double Deallocate (‘double free’)

, which can be exploited toward DOS (availability loss) – application crash) security failure.



vendor:product: wireshark:wireshark:1.8.0


Bug Report


Code with Bug
Code with Bug1


Code with Fix
Code with Fix1


NVD Entry

ClassDefinition
MADMemory Addressing (MAD) class – The pointer to an object is initialized, dereferenced, repositioned, or reassigned to an improper memory address.
MMNMemory Management (MMN) class – An object is allocated, resized, or deallocated improperly.
OperationDefinition
Initialize PointerInitialize Pointer operation – Change the undefined data value of a pointer to a meaningful object address; and position the pointer at the start of the object.
DeallocateDeallocate operation – Release the allocated memory of an object.
Cause/ConsequenceDefinition
Code BugCode Bug type – An error in the implementation of an operation – proper operands over an improper operation. A first cause for the chain of weaknesses underlying a software security vulnerability. Must be fixed to resolve the vulnerability.
   Missing CodeMissing Code bug - The operation is entirely absent.
Address Error/FaultAddress Fault/Error type – The address of an object is wrong.
   Wild PointerWild Pointer fault/error – Holds an arbitrary address, because it has not been initialized or an erroneous allocation routine is used.
Memory Corruption/Disclosure Final ErrorMemory Corruption/Disclosure final error type – An exploitable or undefined system behavior caused by memory addressing, allocation, use, or deallocation bugs.
   Double DeallocateDouble Deallocate final error – An attempt to deallocate a deallocated (freed) object.
Operation AttributeDefinition
MechanismMechanism operation attribute type – Shows how the operation the operation with a bug or faulty operand is performed.
   DirectDirect operation attribute – The operation is on a particular object element.
   ExplicitExplicit operation attribute – The operation is via a function/method call.
Source CodeSource Code operation attribute type – Shows where the code of the operation with a bug or faulty operand resides within the software, firmware, or hardware.
   CodebaseCodebase operation attribute – The operation is in the programmer's code - in the application itself.
Execution SpaceExecution Space operation attribute type – Shows where the operation with a bug or faulty operand is executed and the privilege level at which it runs.
   UserlandUserland operation attribute – The bugged code runs in an environment with privilege levels, but in unprivileged mode (e.g., ring 3 in x86 architecture).
Operand AttributeDefinition
Address StateAddress State operand attribute type – Shows where the address is (i.e., its location) in the memory layout.
   Heap
Size KindSize Kind operand attribute type – Shows what is used as the size or length (i.e., the number of elements) of an object - e.g., as the limit for traversal over the elements.
   UsedUsed operand attribute – A supplied value to be used as the size or length (i.e., the number of elements) of an object.