CWE-763: Release of Invalid Pointer or Reference
114 CVEs have CWE-763 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 8.726%.
The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.
Child of CWE-404: Improper Resource Shutdown or Release
Mitigations
- Implementation: Only call matching memory management functions. Do not mix and match routines. For example, when you allocate a buffer with malloc(), dispose of the original pointer with free().
- Implementation: When programming in C++, consider using smart pointers provided by the boost library to help correctly and consistently manage memory.
- Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, glibc in Linux provides protection against free of invalid pointers.
- Architecture and Design: Use a language that provides abstractions for memory allocation and deallocation.
Observed examples
- CVE-2025-11015: 3D engine rendering backend performs a delete[] on a buffer that was allocated using malloc()
- CVE-2019-11930: function internally calls 'calloc' and returns a pointer at an index... inside the allocated buffer. This led to freeing invalid memory.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-763'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-763'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).