CWE-742
Grouping ProhibitedCERT C Secure Coding Standard (2008) Chapter 9 - Memory Management (MEM)
Status: Obsolete
Weaknesses in this category are related to the rules and recommendations in the Memory Management (MEM) chapter of the CERT C Secure Coding Standard (2008).
Grouping entries organize the catalogue and should not be used to map the root cause of a vulnerability.
Mapping guidance
This entry is a Grouping. Using groupings for mapping has been discouraged since 2019. They are informal organizational groupings of weaknesses that can help CWE users with data aggregation, navigation, and browsing. However, they are not weaknesses in themselves.
See member weaknesses of this category.
Relationships and members
Notes
Relationship
In the 2008 version of the CERT C Secure Coding standard, the following rules were mapped to the following CWE IDs:
CWE-20 MEM10-C Define and use a pointer validation function
CWE-119 MEM09-C Do not assume memory allocation routines initialize memory
CWE-128 MEM07-C Ensure that the arguments to calloc(), when multiplied, can be represented as a size_t
CWE-131 MEM35-C Allocate sufficient memory for an object
CWE-190 MEM07-C Ensure that the arguments to calloc(), when multiplied, can be represented as a size_t
CWE-190 MEM35-C Allocate sufficient memory for an object
CWE-226 MEM03-C Clear sensitive information stored in reusable resources returned for reuse
CWE-244 MEM03-C Clear sensitive information stored in reusable resources returned for reuse
CWE-252 MEM32-C Detect and handle memory allocation errors
CWE-415 MEM00-C Allocate and free memory in the same module, at the same level of abstraction
CWE-415 MEM01-C Store a new value in pointers immediately after free()
CWE-415 MEM31-C Free dynamically allocated memory exactly once
CWE-416 MEM00-C Allocate and free memory in the same module, at the same level of abstraction
CWE-416 MEM01-C Store a new value in pointers immediately after free()
CWE-416 MEM30-C Do not access freed memory
CWE-476 MEM32-C Detect and handle memory allocation errors
CWE-528 MEM06-C Ensure that sensitive data is not written out to disk
CWE-590 MEM34-C Only free memory allocated dynamically
CWE-591 MEM06-C Ensure that sensitive data is not written out to disk
CWE-628 MEM08-C Use realloc() only to resize dynamically allocated arrays
CWE-665 MEM09-C Do not assume memory allocation routines initialize memory
CWE-687 MEM04-C Do not perform zero length allocations
CWE-754 MEM32-C Detect and handle memory allocation errors
Content history
updated Relationships
updated Description, Name, Relationship_Notes
updated Description, Name, References
updated Mapping_Notes
updated Mapping_Notes
updated Mapping_Notes, Type
0 vulnerabilities reference this CWE, most recent first.
No vulnerabilities reference this CWE.
No mitigation information available for this CWE.
No CAPEC attack patterns related to this CWE.