Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-476 (空指针解引用) — Vulnerability Class 1291

1291 vulnerabilities classified as CWE-476 (空指针解引用). AI Chinese analysis included.

CWE-476 represents a critical memory management weakness where software attempts to access memory through a pointer that holds a NULL value instead of a valid address. This error typically occurs when a function fails to allocate memory or validate input, yet the code proceeds to dereference the resulting null reference without checking its status. Attackers exploit this vulnerability by triggering the null condition, often causing the application to crash and resulting in a denial of service. In more complex scenarios, if the NULL pointer is manipulated to point to executable code, it may lead to arbitrary code execution or privilege escalation. To prevent this, developers must rigorously validate all pointers before use, ensuring they are not NULL. Implementing defensive programming practices, such as using assertions during development and comprehensive error handling in production, helps mitigate the risk of dereferencing invalid memory addresses.

MITRE CWE Description
The product dereferences a pointer that it expects to be valid but is NULL.
Common Consequences (2)
AvailabilityDoS: Crash, Exit, or Restart
NULL pointer dereferences usually result in the failure of the process unless exception handling (on some platforms) is available and implemented. Even when exception handling is being used, it can still be very difficult to return the software to a safe state of operation.
Integrity, ConfidentialityExecute 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.
Mitigations (5)
ImplementationFor any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished [REF-1484].
RequirementsSelect a programming language that is not susceptible to these issues.
ImplementationCheck the results of all functions that return a value and verify that the value is non-null before acting upon it.
Effectiveness: Moderate
Architecture and DesignIdentify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
ImplementationExplicitly initialize all variables and other data stores, either during declaration or just before the first usage.
Examples (2)
This example takes an IP address from a user, verifies that it is well formed and then looks up the hostname and copies it into a buffer.
void host_lookup(char *user_supplied_addr){ struct hostent *hp; in_addr_t *addr; char hostname[64]; in_addr_t inet_addr(const char *cp); /*routine that ensures user_supplied_addr is in the right format for conversion */ validate_addr_form(user_supplied_addr); addr = inet_addr(user_supplied_addr); hp = gethostbyaddr( addr, sizeof(struct in_addr), AF_INET); strcpy(hostname, hp->h_name); }
Bad · C
In the following code, the programmer assumes that the system always has a property named "cmd" defined. If an attacker can control the program's environment so that "cmd" is not defined, the program throws a NULL pointer exception when it attempts to call the trim() method.
String cmd = System.getProperty("cmd"); cmd = cmd.trim();
Bad · Java
CVE IDTitleCVSSSeverityPublished
CVE-2026-17500 ggml-org llama.cpp json-schema-to-grammar.cpp _visit_pattern null pointer dereference — llama.cpp 5.3 Medium2026-07-27
CVE-2026-45816 Apache NimBLE: NULL pointer dereference vulnerability in SMP LTK request — Apache NimBLE--2026-07-24
CVE-2026-50032 NULL Pointer Dereference in MZ Automation libIEC61850 — libIEC61850 7.5 High2026-07-23
CVE-2026-13065 MongoDB $linearFill Window Function Improper Input Validation Leading to Process Termination — MongoDB Server 6.5 Medium2026-07-22
CVE-2026-13070 Improper Validation of OCSP Response During Outbound TLS Handshake Leading to Process Termination — MongoDB Server 5.3 Medium2026-07-22
CVE-2026-55717 'serve-expired-client-timeout' and 'response-ip' CNAME redirect could lead to a crash — Unbound 5.9 Medium2026-07-22
CVE-2026-47709 libheif has a NULL pointer dereference in heif_image_handle_get_image_tiling for malformed unci image missing ispe — libheif--2026-07-21
CVE-2026-10678 NULL-pointer / out-of-bounds write in Zephyr MCTP I2C+GPIO target binding driven by an unauthenticated I2C controller — zephyr 8.1 High2026-07-21
CVE-2026-47143 Capstone has a NULL Pointer Dereference with 3DNow! opcodes — capstone 5.1 Medium2026-07-21
CVE-2026-47276 NULL Pointer Dereference in REST API properties_parse via Malformed user_properties — nanomq 6.5 Medium2026-07-20
CVE-2026-47275 nanomq NULL Pointer Dereference in MQTTv5 Client CONNECT Decoder Leading to Remote DoS — nanomq 2.6 Low2026-07-20
CVE-2026-63762 SurrealDB before v2.6.1 Denial of Service via scripting — surrealdb 6.0 Medium2026-07-20
CVE-2026-15352 NASA Core Flight System (cFS) Health & Safety (HS) Application NULL Pointer Dereference — Core Flight System (cFS) Health & Safety (HS) Application 7.5 High2026-07-16
CVE-2026-62299 CoreDNS: rewrite-plugin EDNS0 response-revert nil-pointer panic (remote DoS) when a downstream plugin returns a response with no OPT record — coredns 5.3 Medium2026-07-16
CVE-2026-62309 CoreDNS: proxyproto plugin panics on PPv2 datagram with non-UDP transport — single 28-byte packet remote DoS — coredns 7.5 High2026-07-16
CVE-2026-52865 NGINX Ingress Controller vulnerability — NGINX Ingress Controller 6.5 Medium2026-07-15
CVE-2026-56168 Windows SMB Server Denial of Service Vulnerability — Windows 10 Version 21H2 6.5 Medium2026-07-14
CVE-2026-50673 Windows Kernel Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High2026-07-14
CVE-2026-50366 Windows Active Directory Domain Services Denial of Service Vulnerability — Windows 10 Version 1607 6.5 Medium2026-07-14
CVE-2026-50315 Windows Image Acquisition Elevation of Privilege Vulnerability — Windows 11 Version 24H2 7.8 High2026-07-14
CVE-2026-57976 Windows Active Directory Domain Services Denial of Service Vulnerability — Windows 10 Version 1607 6.5 Medium2026-07-14
CVE-2026-10670 User-triggerable kernel NULL-pointer dereference (DoS) in `k_thread_name_copy()` syscall verifier — zephyr 5.5 Medium2026-07-14
CVE-2026-15690 open62541 Shared Client ua_client_connect.c responseReadNamespacesArray null pointer dereference — open62541 3.1 Low2026-07-14
CVE-2026-58101 Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference — Crypt::OpenSSL::X509--2026-07-13
CVE-2026-55783 NanaZip: NULL pointer dereference in Extract() of all seven NanaZip custom archive handlers when extracting/testing the whole archive — NanaZip--2026-07-10
CVE-2026-21901 Junos OS and Junos OS Evolved: Configuration of a specific SSH option results in mgd crash — Junos OS 4.4 Medium2026-07-09
CVE-2026-60109 Zeek < 8.0.9 Null Pointer Dereference DoS via Kerberos KRB_ERROR Parsing — zeek 7.5 High2026-07-09
CVE-2026-15184 GNU LibreDWG DWG File dwg.c dwg_next_entity null pointer dereference — LibreDWG 3.3 Low2026-07-09
CVE-2026-56288 NULL Pointer Dereference in GNU patch — patch--2026-07-09
CVE-2026-15171 NULL Pointer Dereference in Wireshark — Wireshark 5.5 Medium2026-07-08

Vulnerabilities classified as CWE-476 (空指针解引用) represent 1291 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.