CWE•Variant•Draft•20 recent CVEs
CWE-415Double Free
Description
The product calls free() twice on the same memory address.
Common consequences
- Integrity,Confidentiality,Availability→Modify Memory,Execute Unauthorized Code or Commands[object Object]
Potential mitigations
- Architecture and DesignChoose a language that provides automatic memory management.
- ImplementationEnsure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
- ImplementationUse a static analysis tool to find double free instances.
Related CWEs
CWE-825Expired Pointer DereferenceCWE-1341Multiple Releases of Same Resource or HandleCWE-672Operation on a Resource after Expiration or ReleaseCWE-672Operation on a Resource after Expiration or ReleaseCWE-672Operation on a Resource after Expiration or ReleaseCWE-666Operation on Resource in Wrong Phase of LifetimeCWE-416Use After FreeCWE-123Write-what-where Condition
Recent CVEs classified under this CWE
CVE-2026-838318.82026-10-27CVE-2026-888127.82026-10-27CVE-2026-1167435.52026-10-26CVE-2026-1124577.12026-10-26CVE-2026-1162607.32026-10-26CVE-2026-781165.22026-10-21CVE-2026-943008.12026-10-21CVE-2026-869625.52026-10-20CVE-2026-1120364.32026-10-19CVE-2026-574465.32026-10-16CVE-2026-1105997.12026-10-14CVE-2026-943702026-10-14CVE-2026-956357.82026-10-13CVE-2026-978307.52026-10-13CVE-2026-978127.02026-10-13CVE-2026-978117.82026-10-13CVE-2026-977728.82026-10-13CVE-2026-977678.82026-10-13CVE-2026-977499.82026-10-13CVE-2026-968649.82026-10-13