---
title: "CWE-910: Use of Expired File Descriptor"
url: https://radicalnotion.ai/cwe/cwe-910
type: cwe
description: "The product uses or accesses a file descriptor after it has been closed."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-910: Use of Expired File Descriptor

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

## Description

The product uses or accesses a file descriptor after it has been closed.

## Background

After a file descriptor for a particular file or device has been released, it can be reused.

## Alternate terms

- Stale file descriptor

## Modes of introduction

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

## Applicable platforms

**Languages:** C (Sometimes), C++ (Sometimes)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Files or Directories, Modify Files or Directories | The reused file descriptor might reference a different file or device than the original file descriptor. As a result, the program could read data from, or write data to, the wrong file. |
| Availability | DoS: Crash, Exit, or Restart | Accessing a file descriptor that has been closed can cause a crash. |

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

Effectiveness: High

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-40249 | gpio: cdev: make sure the cdev fd is still active before emitting events | high | 7.8 | - | No | 2025-12-04 |
| CVE-2024-38580 | epoll: be better about file lifetimes | high | 7.8 | - | No | 2024-06-19 |
| CVE-2026-47478 | - | high | 7.5 | - | No | 2026-07-14 |
| CVE-2020-13530 | EIP Stack Group OpENer ethernet/IP server denial-of-service vulnerability | high | 7.5 | - | No | 2020-12-11 |
| CVE-2024-56724 | mfd: intel\_soc\_pmic\_bxtwc: Use IRQ domain for TMU device | medium | 5.5 | - | No | 2024-12-29 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-672](https://radicalnotion.ai/cwe/cwe-672) | Operation on a Resource after Expiration or Release |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CERT C Secure Coding | Do not access a closed file | FIO46-C | Exact |

## Frequently asked questions

### What is CWE-910?

The product uses or accesses a file descriptor after it has been closed.

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

5 recorded CVEs are attributed to CWE-910, including CVE-2025-40249, CVE-2024-38580 and CVE-2026-47478.

### How is CWE-910 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-910?

Exploiting CWE-910 can lead to: Read Files or Directories, Modify Files or Directories, DoS: Crash, Exit, or Restart.

### Is CWE-910 actively exploited?

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

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

---

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