---
title: "CWE-826: Premature Release of Resource During Expected Lifetime"
url: https://radicalnotion.ai/cwe/cwe-826
type: cwe
description: "The product releases a resource that is still intended to be used by itself or another actor."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-826: Premature Release of Resource During Expected Lifetime

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

## Description

The product releases a resource that is still intended to be used by itself or another actor.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data, Read Memory | If the released resource is subsequently reused or reallocated, then a read operation on the original resource might access sensitive data that is associated with a different user or entity. |
| Availability | Unexpected State, DoS: Crash, Exit, or Restart | When the resource is released, the software might modify some of its structure, or close associated channels (such as a file descriptor). When the software later accesses the resource as if it is valid, the resource might not be in an expected state, leading to resultant errors that may lead to a crash. |
| Integrity, Confidentiality, Availability | Execute Unauthorized Code or Commands, Modify Application Data, Modify Memory | When the resource is released, the software might modify some of its structure. This might affect logic in the sections of code that still assume the resource is active. If the released resource is related to memory and is used in a function call, or points to unexpected data in a write operation, then code execution may be possible upon subsequent accesses. |

## 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-2009-3547 | Chain: race condition (CWE-362) might allow resource to be released before operating on it, leading to NULL dereference (CWE-476) |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-99680 | xfs: mark the inode preallocated for pNFS write layouts past EOF | critical | 9.4 | - | No | 2026-11-20 |
| CVE-2026-74691 | net: thunderbolt: Tear down DMA paths before stopping the rings | high | 8.8 | - | No | 2026-08-22 |
| CVE-2026-49427 | posixshm: largepage shared memory objects not explicitly wired | high | 8.8 | - | No | 2026-08-19 |
| CVE-2026-53322 | vfio/pci: Clean up DMABUFs before disabling function | high | 8.8 | - | No | 2026-06-26 |
| CVE-2025-40186 | tcp: Don't call reqsk\_fastopen\_remove() in tcp\_conn\_request(). | high | 8.1 | - | No | 2025-11-12 |
| CVE-2026-99656 | mm/madvise: fix data loss from MADV\_FREE on a KSM page | high | 7.8 | - | No | 2026-11-20 |
| CVE-2026-98052 | net: bcmasp: clear txcb-\>last before writing each descriptor | high | 7.8 | - | No | 2026-09-25 |
| CVE-2026-97584 | afs: Fix incorrect free in candidate cleanup in afs\_lookup\_server() | high | 7.8 | - | No | 2026-09-25 |
| CVE-2026-90423 | RDMA/rxe: Fix UAF in ODP init error-handling path | high | 7.8 | - | No | 2026-09-17 |
| CVE-2026-45984 | gfs2: Fix use-after-free in iomap inline data write path | high | 7.8 | - | No | 2026-05-27 |
| CVE-2022-50517 | mm/huge\_memory: do not clobber swp\_entry\_t during THP split | high | 7.8 | - | No | 2025-10-07 |
| CVE-2022-50215 | scsi: sg: Allow waiting for commands to complete on removed device | high | 7.8 | - | No | 2025-06-18 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-666](https://radicalnotion.ai/cwe/cwe-666) | Operation on Resource in Wrong Phase of Lifetime |
| Can precede | [CWE-672](https://radicalnotion.ai/cwe/cwe-672) | Operation on a Resource after Expiration or Release |

## Frequently asked questions

### What is CWE-826?

The product releases a resource that is still intended to be used by itself or another actor.

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

52 recorded CVEs are attributed to CWE-826, including CVE-2026-99680, CVE-2026-74691 and CVE-2026-49427.

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

Exploiting CWE-826 can lead to: Read Application Data, Read Memory, Unexpected State, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands, Modify Application Data.

### Is CWE-826 actively exploited?

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

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

---

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