CWE-763: Release of Invalid Pointer or Reference

low-risk

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.

Abstraction: Base

Common Consequences

Integrity Modify Memory

Detection Methods

Fuzzing

Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.

Automated Dynamic Analysis

Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ [REF-1518].

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2022-37451 7.5 6.1%
CVE-2023-34312 7.8 4.1%
CVE-2023-34312 7.8 4.1%
CVE-2013-4695 7.8 3.5%
CVE-2021-42377 9.8 2.9%
CVE-2019-11930 9.8 2.5%
CVE-2019-11930 9.8 2.5%
CVE-2021-24028 9.8 1.7%
CVE-2021-24028 9.8 1.7%
CVE-2021-41073 7.8 1.6%
0
/ 100
low-risk
Active Threat 0/50 · Minimal
Exploit Availability 0/50 · Minimal