Skip to content
OpenAdvisories

Weakness (CWE)

CWE-825: Expired Pointer Dereference

Base Incomplete

The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.

How to prevent it (2 mitigations)
  1. Architecture and Design

    Choose a language that provides automatic memory management.

  2. Implementation

    When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

Source: MITRE CWE-825

4 results · Clear filters · Feed