Operations | Definition |
Initialize Pointer | Initialize 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. |
Reposition | Reposition operation – Change the pointer to another position inside its object. |
Reassign | Reassign operation – Direct the pointer to a different object. |
Operands | Definition |
Data | Data operand – The data value of an object – stored in object's memory. |
Type | Type operand – The data type of an object – the set of allowed values (e.g., char is within [-128, 127]) and the operations allowed over them (e.g., +, *, mod). |
Address | Address operand attribute – The memory address for an object. It is data of another object, the object's pointer, used to reference and traverse the object. |
Size | Size operand – The memory size of an object – the number of bytes allocated for an object in memory. Its value is contained by (is data of) of another object. |
Causes | Definition |
Code Bug | Code Bug Type – A code operation defect – 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 Code | |
Erroneous Code | |
Data Fault | Data Fault/Error Type – The object data has harmed semantics or inconsistent or wrong value |
Hardcoded Address | Hardcoded Address fault/error – The pointer holds a wrong specific address. |
Single Owned Address | Single Owned Address fault/error – Exactly one pointer owns the object. |
Wrong Index | Wrong Index fault/error – Incorrect index position – hardcoded or from computation. |
Wrong Size | Wrong Size fault/error – The value used as size does not match the actual size of the object (e.g., to restrict pointer repositioning or index increment/decrement in a repetition statement). |
Type Fault | Type Fault/Error Type – The the set or range of allowed values is wrong or the operations allowed on them are wrong. |
Wrong Type | Wrong Type fault/error – A data type range or structure is not correct. |
Wrong Index Type | Wrong Index Type fault/error – An index is of incorrect data type. |
Casted Pointer | Casted Pointer fault/error – The pointer does not match the type of the object due to wrong type casting. |
Address Fault | Address Fault/Error Type – The object address in use is wrong. |
NULL Pointer | |
Wild Pointer | Wild Pointer fault/error – Holds an arbitrary address, because it has not been initialized or an erroneous allocation routine is used. |
Dangling Pointer | Dangling Pointer fault/error – Still holds the address of its successfully deallocated object (e.g., pointer to a freed heap object or with a returned by a function stack object address). |
Untrusted Pointer | Untrusted Pointer fault/error – The pointer is modified to an improperly checked address. |
Over Bounds Pointer | Over Bounds Pointer fault/error – Holds an address above the upper boundary of its object. |
Under Bounds Pointer | Under Bounds Pointer fault/error – Holds an address below the lower boundary of its object. |
Wrong Position Pointer | Wrong Position Pointer fault/error – Holds the address of a miscalculated position inside its object bounds. |
Size Fault | Size Fault/Error Type – The object size in use is wrong. |
Not Enough Memory | Not Enough Memory fault/error – The allocated memory is too little for the data it should store. |
Consequences | Definition |
Data Error | Data Fault/Error Type – The object data has harmed semantics or inconsistent or wrong value |
NULL Pointer | NULL Pointer fault/error – Does not point to a valid object; usually holds the zero memory address. |
Forbidden Address | Forbidden Address fault/error – The pointer holds an OS protected address (includs the zero address -- a NULL pointer) or non-existing address. |
Type Error | Type Fault/Error Type – The the set or range of allowed values is wrong or the operations allowed on them are wrong. |
Casted Pointer | Casted Pointer fault/error – The pointer does not match the type of the object due to wrong type casting. |
Address Error | Address Fault/Error Type – The object address in use is wrong. |
Wild Pointer | Wild Pointer fault/error – Holds an arbitrary address, because it has not been initialized or an erroneous allocation routine is used. |
Dangling Pointer | Dangling Pointer fault/error – Still holds the address of its successfully deallocated object (e.g., pointer to a freed heap object or with a returned by a function stack object address). |
Untrusted Pointer | Untrusted Pointer fault/error – The pointer is modified to an improperly checked address. |
Over Bounds Pointer | Over Bounds Pointer fault/error – Holds an address above the upper boundary of its object. |
Under Bounds Pointer | Under Bounds Pointer fault/error – Holds an address below the lower boundary of its object. |
Wrong Position Pointer | Wrong Position Pointer fault/error – Holds the address of a miscalculated position inside its object bounds. |
Memory Corruption/Disclosure Final Error | Memory Corruption/Disclosure exploitable error type – An exploitable or undefined system behavior caused by memory addressing, allocation, use, and deallocation bugs. |
Memory Leak | Memory Leak exploitable error – An object has no pointer pointing to it. |
Operations Attributes | Definition |
Mechanism | Mechanism operation attribute type – Shows how the buggy/faulty operation code is performed. |
Direct | Direct operation attribute – The operation is performed on a particular object element. |
Sequential | Sequential operation attribute – The operation is performed after iterating over the object elements. |
Source Code | Source Code operation attribute type – Shows where the buggy/faulty operation code is in the program – in what kind of software. |
Codebase | Codebase operation attribute – The operation is in the programmer's code - in the application itself. |
Third-Party | Third-Party operation attribute – The operation is in a third-party software. |
Standard Library | Standard Library operation attribute – The operation is in the standard library for a particular programming language. |
Compiler/Interpreter | Compiler/Interpreter operation attribute – The operation is in the language processor that allows execution or creates executables (compiler, assembler, interpreter). |
Execution Space | Execution Space operation attribute type – Shows where the buggy/faulty operation code is running or with what privilege level. |
Userland | Userland operation attribute – The bugged code runs in an environment with privilege levels, but in unprivileged mode (e.g., ring 3 in x86 architecture). |
Kernel | Kernel operation attribute – The bugged code runs in an environment with privilege levels with access privileged instructions (e.g., ring 0 in x86 architecture). |
Bare-Metal | Bare-Metal operation attribute – The bugged code runs in an environment without privilege control. Usually, the program is the only software running and has total access to the hardware. |
Operands Attributes | Definition |
Address State | Address State operand attribute type - State operand attribute type – Shows where the address is in the memory layout. |
Stack | Stack operand attribute – The object is a non-static local variable (defined in a function, a passed parameter, or a function return address). |
Heap | Heap operand attribute – The object is a dynamically allocated data structure (e.g., via malloc() and new). |
/other/ | /other/ – Other kinds of memory layout (e.g. Uninitialized Data Segment, Data Segment, and Code Segment could be used for C). |
Size Kind | Size Kind operand attribute type – Shows what the limit for traversal of the object is. |
Actual | Actual operand attribute – The real size of an object. |
Used | Used operand attribute – A supplied size for an object. |