CWEweakness

CWE-824 Access of Uninitialized Pointer

Official page ↗
Abstraction
Base
Structure
Simple
Status
Incomplete
Languages
C, C++, Memory-Unsafe
CWE version
5.0

Description

The product accesses or uses a pointer that has not been initialized.

Extended description

If an attacker can influence the portion of uninitialized memory that is contained in the pointer, this weakness could be leveraged to execute code or perform other attacks. Depending on memory layout, associated memory management behaviors, and product operation, the attacker might be able to influence the contents of the uninitialized pointer, thus gaining more fine-grained control of the memory location to be accessed.

Common consequences

• Confidentiality: Read Memory — If the uninitialized pointer is used in a read operation, it might not point to a valid memory location. An attacker might be able to read sensitive portions of memory. • Availability: DoS: Crash, Exit, or Restart — If the uninitialized pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur. • Integrity, Confidentiality, Availability: Execute Unauthorized Code or Commands — If the uninitialized pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible. If the uninitialized pointer is used as a function call, then arbitrary functions could be invoked.

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

Observed examples

• CVE-2024-32878: LLM product has a free of an uninitialized pointer • CVE-2019-3836: Chain: secure communications library does not initialize a local variable for a data structure (CWE-456), leading to access of an uninitialized pointer (CWE-824). • CVE-2018-14641: Chain: C union member is not initialized (CWE-456), leading to access of invalid pointer (CWE-824) • CVE-2010-0211: Chain: unchecked return value (CWE-252) leads to free of invalid, uninitialized pointer (CWE-824). • CVE-2009-2768: Pointer in structure is not initialized, leading to NULL pointer dereference (CWE-476) and system crash. • CVE-2009-1721: Free of an uninitialized pointer. • CVE-2009-1415: Improper handling of invalid signatures leads to free of invalid pointer. • CVE-2009-0846: Invalid encoding triggers free of uninitialized pointer. • CVE-2009-0040: Crafted PNG image leads to free of uninitialized pointer. • CVE-2008-2934: Crafted GIF image leads to free of uninitialized pointer. • CVE-2007-4682: Access of uninitialized pointer might lead to code execution. • CVE-2007-4639: Step-based manipulation: invocation of debugging function before the primary initialization function leads to access of an uninitialized pointer and code execution. • CVE-2007-4000: Unchecked return values can lead to a write to an uninitialized pointer. • CVE-2007-2442: zero-length input causes jump to an error path with cleanup code, but some structures have not been initialized yet, leading to free of an uninitialized pointer. • CVE-2007-1213: Crafted font leads to uninitialized function pointer. • CVE-2006-6143: Uninitialized function pointer in freed memory is invoked • CVE-2006-4175: LDAP server mishandles malformed BER queries, leading to free of uninitialized memory • CVE-2006-0054: Firewall can crash with certain ICMP packets that trigger access of an uninitialized pointer. • CVE-2003-1201: LDAP server does not initialize members of structs, which leads to free of uninitialized pointer if an LDAP request fails.

Related

Observed example · CVE (19)

  • CVE-2024-32878 Llama.cpp is LLM inference in C/C++. vulnerability
  • CVE-2019-3836 It was discovered in gnutls before version 3.6.7 upstream that there is an uninitialized pointer access in gnutls versions 3.6.3 or later… vulnerability
  • CVE-2018-14641 A security flaw was found in the ip_frag_reasm() function in net/ipv4/ip_fragment.c in the Linux kernel from 4.19-rc1 to 4.19-rc3… vulnerability
  • CVE-2010-0211 The slap_modrdn2mods function in modrdn.c in OpenLDAP 2.4.22 does not check the return value of a call to the smr_normalize function, which… vulnerability
  • CVE-2009-2768 The load_flat_shared_library function in fs/binfmt_flat.c in the flat subsystem in the Linux kernel before 2.6.31-rc6 allows local users to… vulnerability
  • CVE-2009-1721 The decompression implementation in the Imf::hufUncompress function in OpenEXR 1.2.2 and 1.6.1 allows context-dependent attackers to cause… vulnerability
  • CVE-2009-1415 lib/pk-libgcrypt.c in libgnutls in GnuTLS before 2.6.6 does not properly handle invalid DSA signatures, which allows remote attackers to… vulnerability
  • CVE-2009-0846 The asn1_decode_generaltime function in lib/krb5/asn.1/asn1_decode.c in the ASN.1 GeneralizedTime decoder in MIT Kerberos 5 (aka krb5)… vulnerability
  • CVE-2009-0040 The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows… vulnerability
  • CVE-2008-2934 Mozilla Firefox 3 before 3.0.1 on Mac OS X allows remote attackers to cause a denial of service (application crash) or possibly execute… vulnerability
  • CVE-2007-4682 CoreText in Apple Mac OS X 10.4 through 10.4.10 allows attackers to cause a denial of service (application crash) and possibly execute… vulnerability
  • CVE-2007-4000 The kadm5_modify_policy_internal function in lib/kadm5/srv/svr_policy.c in the Kerberos administration daemon (kadmind) in MIT Kerberos 5… vulnerability
  • CVE-2007-4639 EnterpriseDB Advanced Server 8.2 does not properly handle certain debugging function calls that occur before a call to… vulnerability
  • CVE-2007-2442 The gssrpc__svcauth_gssapi function in the RPC library in MIT Kerberos 5 (krb5) 1.6.1 and earlier might allow remote attackers to execute… vulnerability
  • CVE-2007-1213 The TrueType Fonts rasterizer in Microsoft Windows 2000 SP4 allows local users to gain privileges via crafted TrueType fonts, which result… vulnerability
  • CVE-2006-4175 The LDAP server (ns-slapd) in Sun Java System Directory Server 5.2 Patch4 and earlier and ONE Directory Server 5.1 and 5.2 allows remote… vulnerability
  • CVE-2006-6143 The RPC library in Kerberos 5 1.4 through 1.4.4, and 1.5 through 1.5.1, as used in Kerberos administration daemon (kadmind) and other… vulnerability
  • CVE-2006-0054 The ipfw firewall in FreeBSD 6.0-RELEASE allows remote attackers to cause a denial of service (firewall crash) via ICMP IP fragments that… vulnerability
  • CVE-2003-1201 ldbm_back_exop_passwd in the back-ldbm backend in passwd.c for OpenLDAP 2.1.12 and earlier, when the slap_passwd_parse function does not… vulnerability

Can precede · CWE (2)

  • CWE-125 Out-of-bounds Read weakness
  • CWE-787 Out-of-bounds Write weakness

Child of · CWE (1)

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer weakness

Referenced by CVE · weakness (306)

  • CVE-2026-115327 libyang through 6.4.13 contains an uninitialized pointer free vulnerability in lydxml_env_netconf_rpc() in src/parser_xml.c when parsing… vulnerability
  • CVE-2026-109618 PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. vulnerability
  • CVE-2026-109619 PHP has various global state that temporarily points into request memory. vulnerability
  • CVE-2026-94018 The Web add-on's HTTP server dereferences and releases an uninitialized pointer when it detects a `Content-Length` underflow while… vulnerability
  • CVE-2026-110602 libmspack through 0.11alpha contains an uninitialized pointer free vulnerability in kwajd_open() in mspack/kwajd.c that frees unzeroed… vulnerability
  • CVE-2026-110603 LASzip through 3.5.0 contains an invalid free vulnerability in laszip_read_header() that allows attackers to free uninitialized heap… vulnerability
  • CVE-2026-86847 A flaw was found in DPDK lib/vhost vhost-crypto. vulnerability
  • CVE-2026-109774 Invalid pointer, undefined behavior in the DOM: Notifications component. vulnerability
  • CVE-2026-49933 In handle_le_monitor_device_event of msft.cc, there is a possible control-flow hijack in the privileged bluetooth process due to an… vulnerability
  • CVE-2026-66081 Access of Uninitialized Pointer vulnerability in Apache Thrift c_glib bindings. vulnerability
  • CVE-2026-47528 NVIDIA GPU Display Driver for Windows and Linux contains a vulnerability in the firmware where an attacker could cause an access of an… vulnerability
  • CVE-2026-100788 Invalid pointer in the JavaScript: WebAssembly component. vulnerability
  • CVE-2026-88054 Tesseract is an open source OCR engine. vulnerability
  • CVE-2026-67281 RouterOS WebFig contains an unauthenticated file-read vulnerability in the /jsproxy path where a newly allocated session retains a stale… vulnerability
  • CVE-2026-54920 OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. vulnerability
  • CVE-2026-16353 Invalid pointer in the DOM: Bindings (WebIDL) component. vulnerability
  • CVE-2026-16409 Invalid pointer in the Security: PSM component. vulnerability
  • CVE-2026-53042 In the Linux kernel, the following vulnerability has been resolved: fwctl: Fix class init ordering to avoid NULL pointer dereference on… vulnerability
  • CVE-2026-47908 Dreamweaver Desktop versions 21.7 and earlier are affected by an Access of Uninitialized Pointer vulnerability that could result in… vulnerability
  • CVE-2026-47320 Access of uninitialized pointer, Uncontrolled Recursion vulnerability in Samsung Open Source rlottie allows Pointer Manipulation, Oversized… vulnerability
  • CVE-2026-42959 NLnet Labs Unbound up to and including version 1.25.0 has a denial of service vulnerability in the DNSSEC validator that can lead to a… vulnerability
  • CVE-2026-45736 ws is an open source WebSocket client and server for Node.js. vulnerability
  • CVE-2026-39458 When a BIG-IP is configured with DNS caching (Such as a DNS profile with caching enabled, SSL Orchestrator, Advanced WAF DoS protection),… vulnerability
  • CVE-2026-44411 A vulnerability has been identified in Solid Edge SE2026 (All versions < V226.0 Update 5). vulnerability
  • CVE-2026-6524 MySQL protocol dissector crash in Wireshark 4.6.0 to 4.6.4 and 4.4.0 to 4.4.14 allows denial of service vulnerability
  • CVE-2026-6870 GSM RP protocol dissector crash in Wireshark 4.6.0 to 4.6.4 and 4.4.0 to 4.4.14 allows denial of service vulnerability
  • CVE-2026-6748 Uninitialized memory in the Audio/Video: Web Codecs component. vulnerability
  • CVE-2026-6749 Information disclosure due to uninitialized memory in the Graphics: Canvas2D component. vulnerability
  • CVE-2026-6751 Uninitialized memory in the Audio/Video: Web Codecs component. vulnerability
  • CVE-2026-6757 Invalid pointer in the JavaScript: WebAssembly component. vulnerability
Show all 306 ›