CWE-771: Missing Reference to Active Allocated Resource
The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed.
Last updated
The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed.
Last updated
CWE-771 (Missing Reference to Active Allocated Resource) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
27 recorded CVEs are caused by CWE-771 (Missing Reference to Active Allocated Resource). The highest-severity and most recent are shown first. 10 new CWE-771 CVEs have been recorded so far in 2026 (15 in 2025).
Cisco Firepower Threat Defense Software for Cisco Firepower 2100 Series Firewalls Inspection Rules Denial of Service Vulnerability
Cisco IOS XR Software IP Service Level Agreements and Two-Way Active Measurement Protocol Denial of Service Vulnerability
drm/ttm: Don't leak a resource on swapout move error
Windows SMB Server Denial of Service Vulnerability
BIND 9 server memory exhaustion during GSS-API TKEY negotiation
bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}
Cisco IOS XE Software TLS Memory Exhaustion Denial of Service Vulnerability
can: usb: f81604: correctly anchor the urb in the read bulk callback
IBM Verify Identity Access Digital Credentials denial of service
iavf: use internal state to free traffic IRQs
wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
wifi: ath9k: htc_hst: free skb in ath9k_htc_rx_msg() if there is no callback function
Showing 12 of 27 recorded CWE-771 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsWhat can happen when CWE-771 is exploited.
DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other)
Affects: Availability
If an attacker can create the conditions that mistakenly release a reference to a resource, then the attacker could prevent the resource from being reclaimed, deplete the available resource pool, and prevent other processes or threads from accessing the same type of resource.
Typically introduced during these phases of the software lifecycle.
Practical mitigations for CWE-771, grouped by where in the lifecycle they apply.
Use resource-limiting settings provided by the operating system or environment. For example, when managing system resources in POSIX, setrlimit() can be used to set limits for certain types of resources, and getrlimit() can determine how many resources are available. However, these functions are not available on all operating systems.
When the current levels get close to the maximum that is defined for the application (see CWE-770), then limit the allocation of further resources to privileged users; alternately, begin releasing resources for less-privileged users. While this mitigation may protect the system from attack, it will not necessarily stop attackers from adversely impacting other users.
Ensure that the application performs the appropriate error checks and error handling in case resources become unavailable (CWE-703).
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Common questions about CWE-771.
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-771 CVE affects your products, with AI-written analysis and remediation steps.