Umbra Wiki weakness weakness/CWE-826
Back to wiki

CWE-826 — Premature Release of Resource During Expected Lifetime

provenance: imported · CWE: CWE-826

CWE-826: Premature Release of Resource During Expected Lifetime

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

The product releases a resource that is still intended to be used by itself or another actor.

This weakness focuses on errors in which the product should not release a resource, but performs the release anyway. This is different than a weakness in which the product releases a resource at the appropriate time, but it maintains a reference to the resource, which it later accesses. For this weakness, the resource should still be valid upon the subsequent access. When a product releases a resource that is still being used, it is possible that operations will still be taken on this resource, which may have been repurposed in the meantime, leading to issues similar to CWE-825. Consequences may include denial of service, information exposure, or code execution.

Common consequences

  • Confidentiality: Read Application Data, Read Memory
  • Availability: DoS: Crash, Exit, or Restart
  • Integrity, Confidentiality, Availability: Execute Unauthorized Code or Commands, Modify Application Data, Modify Memory

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/826.html
  • CWE list: https://cwe.mitre.org/data/index.html