CWE-476

GPTKB entity

Statements (26)
Predicate Object
gptkbp:instanceOf gptkb:Common_Weakness_Enumeration
gptkbp:category Software Weakness
gptkbp:citation https://cwe.mitre.org/data/definitions/476.html
gptkbp:consequence gptkb:Crash
gptkb:Denial_of_Service
Unexpected Behavior
gptkbp:describes Dereference of a pointer that is expected to be valid but is NULL, typically leading to a crash or unexpected behavior.
gptkbp:example Dereferencing a pointer returned by malloc without checking for NULL.
gptkbp:hasCWE 476
https://www.w3.org/2000/01/rdf-schema#label CWE-476
gptkbp:introduced Improper error handling
Failure to check return values
gptkbp:language gptkb:Java
gptkb:C++
C
gptkbp:likelihoodOfExploit High
gptkbp:mitigatedBy Check for NULL before dereferencing pointers.
Use static analysis tools to detect possible NULL dereferences.
gptkbp:name NULL Pointer Dereference
gptkbp:partOf gptkb:CWE
gptkbp:relatedTo CWE-252
CWE-690
gptkbp:status Active
gptkbp:weakness gptkb:Base
gptkbp:bfsParent gptkb:CWE
gptkbp:bfsLayer 7