---
title: "CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime"
url: https://radicalnotion.ai/cwe/cwe-775
type: cwe
description: "The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 9
- **Of those, in CISA KEV:** 0
- **New in 2026:** 4
- **CWE catalog version:** 4.21

## Description

The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | DoS: Resource Consumption (Other) | An attacker that can influence the allocation of resources that are not properly released could deplete the available resource pool and prevent all other processes from accessing the same type of resource. When a file descriptor or handle is not released after use (typically by explicitly closing it), attackers can attempt to open a large number of file descriptors/handles, thus consuming all available file descriptors/handles, or otherwise preventing other system processes from obtaining their own file descriptors/handles. |

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

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2007-0897 | Chain: anti-virus product encounters a malformed file but returns from a function without closing a file descriptor (CWE-775) leading to file descriptor consumption (CWE-400) and failed scans. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-78408 | Util-linux: util-linux: nsenter --join-cgroup leaks root cgroup migration authority | high | 7.9 | - | No | 2026-09-02 |
| CVE-2016-8819 | - | high | 7.8 | - | No | 2016-12-16 |
| CVE-2024-24444 | - | high | 7.5 | - | No | 2025-01-21 |
| CVE-2024-56749 | dlm: fix dlm\_recover\_members refcount on error | high | 7.5 | - | No | 2024-12-29 |
| CVE-2017-8452 | kibana: Resource exhaustion via file descriptors clean up failure | high | 7.5 | - | No | 2017-06-16 |
| CVE-2019-25557 | TwistedBrush Pro Studio 24.06 Denial of Service via srp File | medium | 6.9 | - | No | 2026-03-21 |
| CVE-2026-110831 | FreeRDP 3.13.0 before 3.32.0 Resource Leak via Drive Redirection IRP\_MJ\_CREATE | medium | 5.3 | - | No | 2026-10-14 |
| CVE-2026-106575 | ImageMagick: Unclosed file pointer in magick script | medium | 5.3 | - | No | 2026-10-07 |
| CVE-2025-53476 | OpenPLC OpenPLC\_v3 ModbusTCP server denial of service vulnerability | medium | 5.3 | - | No | 2025-10-07 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-404](https://radicalnotion.ai/cwe/cwe-404) | Improper Resource Shutdown or Release |
| Parent | [CWE-772](https://radicalnotion.ai/cwe/cwe-772) | Missing Release of Resource after Effective Lifetime |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CERT C Secure Coding | Close files when they are no longer needed | FIO42-C | CWE More Abstract |
| Software Fault Patterns | Failure to Release Resource | SFP14 | - |

## Frequently asked questions

### What is CWE-775?

The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed.

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

9 recorded CVEs are attributed to CWE-775, including CVE-2026-78408, CVE-2016-8819 and CVE-2024-24444.

### How do you prevent CWE-775?

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-775 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-775?

Exploiting CWE-775 can lead to: DoS: Resource Consumption (Other).

### Is CWE-775 actively exploited?

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

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

---

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