---
title: "CWE-822: Untrusted Pointer Dereference"
url: https://radicalnotion.ai/cwe/cwe-822
type: cwe
description: "The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-822: Untrusted Pointer Dereference

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

## Description

The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer.

There are several variants of this weakness, including but not necessarily limited to:

The untrusted value is directly invoked as a function call.

In OS kernels or drivers where there is a boundary between "userland" and privileged memory spaces, an untrusted pointer might enter through an API or system call (see CWE-781 for one such example).

Inadvertently accepting the value from an untrusted control sphere when it did not have to be accepted as input at all. This might occur when the code was originally developed to be run by a single user in a non-networked environment, and the code is then ported to or otherwise exposed to a networked environment.

## Modes of introduction

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

## Applicable platforms

**Languages:** Memory-Unsafe (Undetermined), C (Undetermined), C++ (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Memory | If the dereferencing operation is for a read, then the attack might allow reading of sensitive data, cause a crash, or set a variable to an unexpected value (since the value will be read from an unexpected memory location). |
| Availability | DoS: Crash, Exit, or Restart | If the untrusted pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" or larger than expected by a read or write operation, the application may terminate unexpectedly. |
| Integrity, Confidentiality, Availability | Execute Unauthorized Code or Commands, Modify Memory | If the pointer is dereferenced for a write operation, the attack might allow modification of critical state variables, cause a crash, or execute code. If the untrusted pointer is used in a function call, then the attacker might be able to call arbitrary functions. |

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

### Automated Dynamic Analysis

Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ \[REF-1518\].

Effectiveness: Moderate. Crafted inputs are necessary to reach the code containing the error, such as generated by fuzzers. Also, these tools may reduce performance, and they only report the error condition - not the original mistake that led to the error.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2007-5655 | message-passing framework interprets values in packets as pointers, causing a crash. |
| CVE-2010-2299 | labeled as a "type confusion" issue, also referred to as a "stale pointer." However, the bug ID says "contents are simply interpreted as a pointer... renderer ordinarily doesn't supply this pointer directly". The "handle" in the untrusted area is replaced in one function, but not another - thus also, effectively, exposure to wrong sphere (CWE-668). |
| CVE-2009-1719 | Untrusted dereference using undocumented constructor. |
| CVE-2009-1250 | An error code is incorrectly checked and interpreted as a pointer, leading to a crash. |
| CVE-2009-0311 | An untrusted value is obtained from a packet and directly called as a function pointer, leading to code execution. |
| CVE-2010-1818 | Undocumented attribute in multimedia software allows "unmarshaling" of an untrusted pointer. |
| CVE-2010-3189 | ActiveX control for security software accepts a parameter that is assumed to be an initialized pointer. |
| CVE-2010-1253 | Spreadsheet software treats certain record values that lead to "user-controlled pointer" (might be an untrusted offset, not an untrusted pointer). |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-29360 | Microsoft Streaming Service Elevation of Privilege Vulnerability | high | 8.6 | - | Yes | 2023-06-13 |
| CVE-2025-24990 | Windows Agere Modem Driver Elevation of Privilege Vulnerability | high | 8.5 | - | Yes | 2025-10-14 |
| CVE-2024-35250 | Windows Kernel-Mode Driver Elevation of Privilege Vulnerability | high | 8.5 | - | Yes | 2024-06-11 |
| CVE-2023-36033 | Windows DWM Core Library Elevation of Privilege Vulnerability | high | 8.5 | - | Yes | 2023-11-14 |
| CVE-2024-21338 | Windows Kernel Elevation of Privilege Vulnerability | high | 8.4 | - | Yes | 2024-02-13 |
| CVE-2026-96924 | Windows OLE Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2026-10-13 |
| CVE-2026-70300 | Microsoft Office Word Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2026-10-13 |
| CVE-2026-70275 | Windows CD-ROM File System Driver Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2026-10-13 |
| CVE-2026-105723 | Windows Distributed File System (DFS) Elevation of Privilege Vulnerability | critical | 9.8 | - | No | 2026-10-13 |
| CVE-2026-63924 | ipv6: exthdrs: refresh nh pointer after ipv6\_hop\_jumbo() | critical | 9.8 | - | No | 2026-07-19 |
| CVE-2026-43067 | ext4: handle wraparound when searching for blocks for indirect mapped blocks | critical | 9.8 | - | No | 2026-05-05 |
| CVE-2025-50165 | Windows Graphics Component Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2025-08-12 |

## Related attack patterns (CAPEC)

- [CAPEC-129](https://radicalnotion.ai/capec/capec-129): Pointer Manipulation

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-119](https://radicalnotion.ai/cwe/cwe-119) | Improper Restriction of Operations within the Bounds of a Memory Buffer |
| Can precede | [CWE-125](https://radicalnotion.ai/cwe/cwe-125) | Out-of-bounds Read |
| Can precede | [CWE-787](https://radicalnotion.ai/cwe/cwe-787) | Out-of-bounds Write |
| Related | [CWE-781](https://radicalnotion.ai/cwe/cwe-781) | Improper Address Validation in IOCTL with METHOD\_NEITHER I/O Control Code |

## Frequently asked questions

### What is CWE-822?

The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer.

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

344 recorded CVEs are attributed to CWE-822, including CVE-2023-29360, CVE-2025-24990 and CVE-2024-35250. 5 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

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

Exploiting CWE-822 can lead to: Read Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands, Modify Memory.

### Is CWE-822 actively exploited?

Yes. 5 CWE-822 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 344 recorded CVEs.

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

---

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