CWE-226: Sensitive Information Uncleared Before Release
Sensitive Information Uncleared Before Release
Weakness ID: 226 (Weakness Base)
Status: Draft
Description
Description Summary
The software does not fully clear previously used information
in a data structure, file, or other resource, before making that resource
available to a party in another control sphere.
Extended Description
This typically results from new data that is not as long as the old data,
which leaves portions of the old data still available. Equivalent errors can
occur in other situations where the length of data is variable but the
associated data structure is not. Failing to clear memory when finished may
allow unintended actors to read the data when the memory is reallocated.