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-578427.02026-09-11CVE-2026-619154.22026-09-09CVE-2026-875858.82026-09-09CVE-2026-799077.82026-09-08CVE-2026-819507.82026-09-08CVE-2026-800808.82026-09-08CVE-2026-775048.82026-09-08CVE-2026-774939.82026-09-08CVE-2026-729588.22026-09-08CVE-2026-713537.02026-09-08CVE-2026-713517.02026-09-08CVE-2026-713386.42026-09-08CVE-2026-705677.02026-09-08CVE-2026-705627.02026-09-08CVE-2026-698768.02026-09-08CVE-2026-697257.82026-09-08CVE-2026-693987.02026-09-08CVE-2026-693377.12026-09-08CVE-2026-693228.02026-09-08CVE-2026-693097.02026-09-08