CWEweakness

CWE-690 Unchecked Return Value to NULL Pointer Dereference

Official page ↗
Abstraction
Compound
Structure
Chain
Status
Draft
Languages
C, C++, Memory-Unsafe
CWE version
5.0

Description

The product does not check for an error after calling a function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference.

Common consequences

• Availability: DoS: Crash, Exit, or Restart • Integrity, Confidentiality, Availability: Execute Unauthorized Code or Commands, Read Memory, Modify Memory — In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution.

Detection methods

• Black Box: This typically occurs in rarely-triggered error conditions, reducing the chances of detection during black box testing. • White Box: Code analysis can require knowledge of API behaviors for library functions that might return NULL, reducing the chances of detection when unknown libraries are used. • 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-2008-1052: Large Content-Length value leads to NULL pointer dereference when malloc fails. • CVE-2006-6227: Large message length field leads to NULL pointer dereference when malloc fails. • CVE-2006-2555: Parsing routine encounters NULL dereference when input is missing a colon separator. • CVE-2003-1054: URI parsing API sets argument to NULL when a parsing failure occurs, such as when the Referer header is missing a hostname, leading to NULL dereference. • CVE-2008-5183: Chain: unchecked return value can lead to NULL dereference

Related

Observed example · CVE (5)

  • CVE-2008-5183 cupsd in CUPS 1.3.9 and earlier allows local users, and possibly remote attackers, to cause a denial of service (daemon crash) by adding a… vulnerability
  • CVE-2008-1052 The administration web interface in NetWin SurgeFTP 2.3a2 and earlier allows remote attackers to cause a denial of service (daemon crash)… vulnerability
  • CVE-2006-6227 The Core::Receive function in neonet/core.cpp for NeoEngine 0.8.2 and earlier, and CVS 3422, allow remote attackers to cause a denial of… vulnerability
  • CVE-2006-2555 The parse_command function in Genecys 0.2 and earlier allows remote attackers to cause a denial of service (crash) via a command with a… vulnerability
  • CVE-2003-1054 mod_access_referer 1.0.2 allows remote attackers to cause a denial of service (crash) via a malformed Referer header that is missing a… vulnerability

Child of · CWE (1)

  • CWE-252 Unchecked Return Value weakness

Starts with · CWE (1)

  • CWE-252 Unchecked Return Value weakness

Referenced by CVE · weakness (36)

  • CVE-2026-76418 A vulnerability in the Remote Access SSL VPN service of Cisco Secure Firewall Adaptive Security Appliance (ASA) Software and Cisco Secure… vulnerability
  • CVE-2026-87086 Tanium addressed a denial of service vulnerability in Provision. vulnerability
  • CVE-2026-82946 SOEM version 2.0.0 and earlier contains a vulnerability where a malicious device can crash the master system. vulnerability
  • CVE-2026-24160 NVIDIA TRT-LLM for any platform contains a vulnerability where an attacker could cause an unchecked return value to a null pointer… vulnerability
  • CVE-2026-44638 libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. vulnerability
  • CVE-2026-24404 iccDEV provides libraries and tools for interacting with, manipulating, and applying ICC color management profiles. vulnerability
  • CVE-2026-24409 iccDEV provides libraries and tools for interacting with, manipulating, and applying ICC color management profiles. vulnerability
  • CVE-2026-24410 iccDEV provides libraries and tools for interacting with, manipulating, and applying ICC color management profiles. vulnerability
  • CVE-2026-24411 iccDEV provides libraries and tools for interacting with, manipulating, and applying ICC color management profiles. vulnerability
  • CVE-2026-21496 iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. vulnerability
  • CVE-2026-21498 iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. vulnerability
  • CVE-2026-21499 iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. vulnerability
  • CVE-2026-21502 iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of ICC color management profiles. vulnerability
  • CVE-2026-21689 iccDEV provides a set of libraries and tools that allow for the interaction, manipulation, and application of International Color… vulnerability
  • CVE-2025-33192 NVIDIA DGX Spark GB10 contains a vulnerability in SROOT firmware, where an attacker could cause an arbitrary memory read. vulnerability
  • CVE-2024-42328 When the webdriver for the Browser object downloads data from a HTTP server, the data pointer is set to NULL and is allocated only in… vulnerability
  • CVE-2024-42329 The webdriver for the Browser object expects an error object to be initialized when the webdriver_session_query function fails. vulnerability
  • CVE-2024-23915 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-23916 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31164 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31165 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31167 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31175 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31182 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31185 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-31196 Unchecked Return Value to NULL Pointer Dereference vulnerability in Open Networking Foundation (ONF) libfluid (libfluid_msg module). vulnerability
  • CVE-2024-23085 Apfloat v1.10.1 was discovered to contain a NullPointerException via the component org.apfloat.internal.DoubleScramble::scramble(double[],… vulnerability
  • CVE-2020-36646 A vulnerability classified as problematic has been found in MediaArea ZenLib up to 0.4.38. vulnerability
  • CVE-2022-41957 Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. vulnerability
  • CVE-2022-39381 Muhammara is a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs). vulnerability
Show all 36 ›