Skip to content
OpenAdvisories

Weakness (CWE)

CWE-476: NULL Pointer Dereference

Base

The product dereferences a pointer that it expects to be valid but is NULL.

How to prevent it (5 mitigations)
  1. Implementation

    For 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].

  2. Requirements

    Select a programming language that is not susceptible to these issues.

  3. Implementation

    Check the results of all functions that return a value and verify that the value is non-null before acting upon it.

  4. Architecture and Design

    Identify 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.

  5. Implementation

    Explicitly initialize all variables and other data stores, either during declaration or just before the first usage.

Source: MITRE CWE-476

2,667 results · Feed

  • Medium 4.0

    Null pointer dereference issue in the image codec module. Impact: Successful exploitation of this vulnerability may aff…

  • High 7.8

    net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked

    In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked multiq_dequeue() takes a packet from a band's child with a direct ->dequeue() call after multiq_peek() pe…

  • High 8.2

    net/sched: sch_taprio: Replace direct dequeue call with peek and qdisc_dequeue_peeked

    In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_taprio: Replace direct dequeue call with peek and qdisc_dequeue_peeked When taprio's software path peeks a non-work-conserving child qdisc, the child stashes the peeked skb in …

  • High 7.8

    fhandle: reject detached mounts in capable_wrt_mount()

    In the Linux kernel, the following vulnerability has been resolved: fhandle: reject detached mounts in capable_wrt_mount() The recent fhandle RCU fix moved the mount namespace capability check into capable_wrt_mount(), so a non-NULL mnt_namespace survives the…

  • Low 2.7

    Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service

    Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service

  • Medium 6.9

    CVE-2026-55401 is a null dereference vulnerability on the load-balancing sub-system of Secure Access servers prior to 1…

  • Medium 6.5

    Improper Input Validation in MongoDB Query Planner Leads to Denial of Service

    An issue in MongoDB Server's query planner could allow an authenticated user with read-level privileges to cause the server process to terminate unexpectedly by submitting a specially formed query against a collection with a text index. This could result in a…

  • High 7.5

    Windows iSCSI Target Service Denial of Service Vulnerability

    Null pointer dereference in Windows iSCSI Target Service allows an unauthorized attacker to deny service over a network.

  • Medium 6.8

    Windows Graphics Kernel Denial of Service Vulnerability

    Null pointer dereference in Windows Graphics Kernel allows an unauthorized attacker to deny service over a network.

  • Medium 6.5

    Microsoft Remote Registry Service Denial of Service Vulnerability

    Null pointer dereference in Microsoft Remote Registry Service allows an authorized attacker to deny service over a network.

  • Medium 6.5

    Microsoft Remote Registry Service Denial of Service Vulnerability

    Null pointer dereference in Microsoft Remote Registry Service allows an authorized attacker to deny service over a network.

  • High 7.5

    Windows TCP/IP Denial of Service Vulnerability

    Null pointer dereference in Windows TCP/IP allows an unauthorized attacker to deny service over a network.

  • High 7.5

    CAI Content Credentials | NULL Pointer Dereference (CWE-476)

    CAI Content Credentials is affected by a NULL Pointer Dereference vulnerability that could result in an application denial-of-service. An attacker could exploit this vulnerability to crash the application, leading to a denial-of-service condition. Exploitatio…

  • High 7.1

    Null pointer dereference for some Intel(R) PROSet/Wireless WiFi Software for Windows within Ring 2: Device Drivers may …

  • High 7.1

    Null pointer dereference for some Intel(R) PROSet/Wireless WiFi Software for Windows within Ring 2: Device Drivers may …

  • High 8.3

    Null pointer dereference for some Intel(R) PROSet/Wireless WiFi Software for Windows within Ring 0: Kernel may allow a …

  • Medium 6.5

    Velociraptor server crash via the SetPassword API

    Any authenticated Velociraptor user — including one holding only the readerrole — can terminate the entire server process with a single request, by calling SetPassword with a username that does not exist.

  • Medium 4.6

    NULL pointer dereference in USB DFU device_next download handler (handle_download)

    The USB DFU class implementation in Zephyr's new (experimental) device_next USB device stack contains a NULL pointer dereference in handle_download() (subsys/usb/device_next/class/usbd_dfu.c). The handler computes MIN(setup->wLength, buf->len) and passes buf-…

  • Low 3.9

    Shim/dp.c library: null-pointer dereference in is_removable_media_path() when devicepathtostr() returns null

    A NULL pointer vulnerability has been found in the the shim application of dp.c library. A missing NULL pointer could allow attackers to perform a denial of service attack on a system that uses shim application for UEFI bootloader.

  • High 7.5

    NULL-pointer dereference in UpdateHub OTA agent on empty inner metadata array (remote DoS)

    The UpdateHub firmware-update agent's probe handler (z_impl_updatehub_probe() in subsys/mgmt/updatehub/updatehub.c) parses the JSON metadata returned by the update server into a fixed two-level nested-array struct. After parsing it validates only the outer ar…

  • Medium 5.5

    OP-TEE OS 4.10.0 NULL Pointer Dereference DoS via Widevine PTA open_session

    OP-TEE OS through 4.10.0, fixed in commit 0aadfc2, contains a null pointer dereference vulnerability in the Widevine pseudo-TA open_session handler that allows Normal World clients to cause a denial of service when CFG_WIDEVINE_PTA is enabled. Attackers can o…

  • Critical 9.8

    s390/checksum: Fix csum_partial() without vector facility

    In the Linux kernel, the following vulnerability has been resolved: s390/checksum: Fix csum_partial() without vector facility Currently csum_partial() calls csum_copy() with copy=false and dst=NULL. On machines without the vector facility, csum_copy() falls b…

  • High 8.8

    firewire: net: Fix fragmented datagram reassembly

    In the Linux kernel, the following vulnerability has been resolved: firewire: net: Fix fragmented datagram reassembly fwnet_frag_new() keeps a sorted list of received fragments for a partial datagram. When a new fragment is adjacent to an existing fragment, t…

  • High 7.8

    drm/xe/vf: Add drm_dev guards when detaching CCS read/write buffers

    In the Linux kernel, the following vulnerability has been resolved: drm/xe/vf: Add drm_dev guards when detaching CCS read/write buffers CCS read/write buffers are freed during BO destruction. In some cases, BOs may be destroyed after the device is unbound but…

  • High 7.5

    libceph: guard missing CRUSH type name lookup

    In the Linux kernel, the following vulnerability has been resolved: libceph: guard missing CRUSH type name lookup Localized read selection can walk a parent bucket whose name exists in the CRUSH map while its type has no matching entry in type_names. get_imme…

  • High 7.5

    net/af_iucv: fix NULL deref in afiucv_hs_callback_syn()

    In the Linux kernel, the following vulnerability has been resolved: net/af_iucv: fix NULL deref in afiucv_hs_callback_syn() afiucv_hs_callback_syn() allocates the child socket with GFP_ATOMIC. If the allocation fails, nsk is NULL. The connection-refused path …

  • Critical 9.8

    net: gro: fix double aggregation of flush-marked skbs

    In the Linux kernel, the following vulnerability has been resolved: net: gro: fix double aggregation of flush-marked skbs Commit 0ab03f353d36 ("net-gro: Fix GRO flush when receiving a GSO packet.") added a flush check to skb_gro_receive(), but skb_gro_receive…

  • High 7.5

    fastschema - Unauthenticated NULL Pointer Dereference DoS in Account Recovery Endpoint

    A NULL pointer dereference vulnerability in fastschema through v0.15.1 allows an unauthenticated remote attacker to crash the server process with a single HTTP request. The sendOTPEmail function in pkg/auth/local.go dereferences a pointer obtained from an unc…

  • High 7.5

    Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute

    Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(…

  • High 7.5

    Klever-Go: Unauthenticated nil-pointer DoS in P2P transaction validation can halt the chain

    Klever-Go is the Go implementation of the Klever blockchain protocol. Versions 1.7.14 through 1.7.17 are vulnerable to a nil-pointer panic triggered by a protobuf Transaction whose embedded RawData sub-message is omitted. This omission causes RawData to decod…

  • Medium 5.3

    Authenticated denial of service in Consul Enterprise-to-Community Edition downgrade path

    Consul Community Edition and Consul Enterprise 1.18.0 through 2.0.2 are vulnerable to an authenticated denial of service in the Enterprise-to-Community Edition downgrade path that may allow an authorized caller to crash the Consul server. A caller with config…

  • High 7.8

    NexTOR_IP_CHANGER has PATH Injection Leading to Arbitrary Command Execution

    NexTor IP Changer is a command-line tool that leverages the Tor network to periodically rotate a user's IP address. Versions prior to 2.0.0 have a command execution vulnerability due to unsafe use of `shell=True` with commands that rely on executable resoluti…

  • Medium 5.5

    GPU DDK - Out of bounds memory access and kernel NULL pointer dereference in DmaTransfer when pui64Address is a pointer to device memory

    Software installed and run as a non-privileged user may conduct improper GPU system calls to trigger OOB access and kernel null pointer dereference in an error path. Null pointer dereference occurs in an error path of a function running in kernel thread of ex…

  • High 7.0

    llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp

    llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Android JNI wrapper where bench_1model() and free_1context() lack synchronization, allowing Thread A to operate on freed memory while Thread B concurrently…

  • Medium 5.5

    llama.cpp b1886–b7445 Null Pointer Dereference DoS via llama-android.cpp

    llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI wrapper where the bench_1model() function fails to validate the model context pointer before dereferencing it. Attackers can supply a malicious, cor…

  • Medium 6.8

    Nbit filter NULL/short parameter-array dereference

    H5Z__filter_nbit in H5Znbit.c in HDF5 prior to 2.3.0 dereferences cd_values[0] through cd_values[4] without validating that cd_values is non-NULL or that cd_nelmts is at least 5, the fixed size of the filter's header. This allows attackers to cause a denial o…

  • High 8.2

    HDF5 H5Pget_fill_value NULL Pointer Dereference via Malformed Fill Value Message

    NULL pointer dereference in H5Pget_fill_value in HDF5 before 2.3.0 allows attackers to cause a denial of service via a dataset whose version 1 or 2 fill value message has the "defined" flag set together with a negative size field, which is not normalized to t…

  • Critical 9.8

    In open62541 v1.5.5, the server-side AddReferences implementation contains an incomplete validation flaw for non-local …

  • High 8.7

    OpenSIPS: Denial of Service in SDP bandwidth parsing via QoS SDP cloning

    OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Versions prior to 3.6.6 and 4.0.0-rc1 contain a denial of service vulnerability in the SDP bandwidth-line parsing logic. A SIP request with Content-Type: application/sdp and a malformed se…

  • High 8.7

    OpenSIPS: Denial of service in presence.handle_publish() from unchecked Content-Type state

    OpenSIPS is a Session Initiation Protocol (SIP) server implementation. Versions 3.4.0 through 3.6.5 contain a denial of service vulnerability in the presence module. When the presence module's handle_publish() function processes a SIP PUBLISH request with an …