---
title: "CWE-771: Missing Reference to Active Allocated Resource"
url: https://radicalnotion.ai/cwe/cwe-771
type: cwe
description: "The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-771: Missing Reference to Active Allocated Resource

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** Medium
- **CVEs with this as primary weakness:** 27
- **Of those, in CISA KEV:** 0
- **New in 2026:** 10
- **CWE catalog version:** 4.21

## Description

The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other) | 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. |

## Potential mitigations

### Operation, Architecture and Design (Resource Limitation)

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).

## Detection methods

### Automated Static Analysis

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.)

## Real CVEs with this weakness (sample of 12 of 27)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-20244 | Cisco Firepower Threat Defense Software for Cisco Firepower 2100 Series Firewalls Inspection Rules Denial of Service Vulnerability | high | 8.6 | - | No | 2023-11-01 |
| CVE-2021-34720 | Cisco IOS XR Software IP Service Level Agreements and Two-Way Active Measurement Protocol Denial of Service Vulnerability | high | 8.6 | - | No | 2021-09-09 |
| CVE-2023-53844 | drm/ttm: Don't leak a resource on swapout move error | high | 7.8 | - | No | 2025-12-09 |
| CVE-2026-96325 | Windows SMB Server Denial of Service Vulnerability | high | 7.5 | - | No | 2026-10-13 |
| CVE-2026-3039 | BIND 9 server memory exhaustion during GSS-API TKEY negotiation | high | 7.5 | - | No | 2026-05-20 |
| CVE-2025-40183 | bpf: Fix metadata\_dst leak \_\_bpf\_redirect\_neigh\_v{4,6} | high | 7.5 | - | No | 2025-11-12 |
| CVE-2026-20004 | Cisco IOS XE Software TLS Memory Exhaustion Denial of Service Vulnerability | high | 7.4 | - | No | 2026-03-25 |
| CVE-2026-23347 | can: usb: f81604: correctly anchor the urb in the read bulk callback | medium | 6.8 | - | No | 2026-03-25 |
| CVE-2024-56343 | IBM Verify Identity Access Digital Credentials denial of service | medium | 6.5 | - | No | 2025-06-06 |
| CVE-2023-53850 | iavf: use internal state to free traffic IRQs | medium | 6.1 | - | No | 2025-12-09 |
| CVE-2023-53808 | wifi: mwifiex: fix memory leak in mwifiex\_histogram\_read() | medium | 6.1 | - | No | 2025-12-09 |
| CVE-2023-53802 | wifi: ath9k: htc\_hst: free skb in ath9k\_htc\_rx\_msg() if there is no callback function | medium | 6.1 | - | No | 2025-12-09 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-400](https://radicalnotion.ai/cwe/cwe-400) | Uncontrolled Resource Consumption |
| Child | [CWE-773](https://radicalnotion.ai/cwe/cwe-773) | Missing Reference to Active File Descriptor or Handle |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CERT C Secure Coding | Close files when they are no longer needed | FIO42-C | CWE More Abstract |
| CERT C Secure Coding | Free dynamically allocated memory when no longer needed | MEM31-C | CWE More Abstract |
| Software Fault Patterns | Failure to Release Resource | SFP14 | - |
| ISA/IEC 62443 | Req SR 7.2 | Part 3-3 | - |
| ISA/IEC 62443 | Req SVV-1 | Part 4-1 | - |
| ISA/IEC 62443 | Req CR 7.2 | Part 4-2 | - |

## Frequently asked questions

### What is CWE-771?

The product does not properly maintain a reference to a resource that has been allocated, which prevents the resource from being reclaimed.

### What CVEs are caused by CWE-771?

27 recorded CVEs are attributed to CWE-771, including CVE-2023-20244, CVE-2021-34720 and CVE-2023-53844.

### How do you prevent CWE-771?

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.

### How is CWE-771 detected?

Automated Static Analysis: 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.)

### What are the consequences of CWE-771?

Exploiting CWE-771 can lead to: DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other).

### Is CWE-771 actively exploited?

27 recorded CVEs are caused by CWE-771; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/771.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-771). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
