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 6.5

    libheif allows Out-of-bounds vector access leading to invalid dereference (DoS)

    libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a malformed HEIF sequence file can trigger an out-of-bounds read in core sequence parsing logic, causing DoS. A malformed file can have stco.entry_count == 0 (creating n…

  • Medium 5.3

    Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh

    SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a certificate. CertChecker now returns an error instead of panicking when these callbacks are nil.

  • Medium 6.5

    libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk

    libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 =…

  • Medium 5.9

    NanoMQ: NULL Pointer Dereference Crash in tcptran_pipe_peer During Session Restore

    NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. In versions 0.24.10 and below, when NanoMQ handles high-concurrency reconnect traffic using a reconnect-collision payload, the broker can crash due to a NULL pointer dereference during MQTT…

  • Medium 5.5

    NULL pointer dereference vulnerability in Samsung Open Source Walrus allows Pointer Manipulation. This issue affects Wa…

  • Low 3.3

    Sensors_medical_sensor has a NULL pointer dereference vulnerability

    in OpenHarmony v6.0 and prior versions allow a local attacker cause DOS.

  • Medium 5.5

    NULL pointer dereference vulnerability in Samsung Open Source Walrus allows an attacker to cause a denial of service vi…

  • Medium 5.5

    NetBSD Signed Integer Overflow in cryptodev_op via cryptodev.c

    NetBSD prior to commit ec8451e contains a signed integer overflow vulnerability in the cryptodev_op() function in sys/opencrypto/cryptodev.c where the local variable iov_len is declared as a signed int but assigned from an unsigned cop->dst_len value, causing…

  • Medium 4.3

    omec-project amf dispatcher.go UERadioCapabilityCheckResponse null pointer dereference

    A security vulnerability has been detected in omec-project amf up to 2.1.3-dev. This impacts the function UERadioCapabilityCheckResponse of the file ngap/dispatcher.go. Such manipulation leads to null pointer dereference. The attack can be executed remotely. …

  • Medium 4.3

    omec-project amf NGAP Message handler.go null pointer dereference

    A weakness has been identified in omec-project amf up to 2.1.3-dev. This affects an unknown function of the file ngap/handler.go of the component NGAP Message Handler. This manipulation causes null pointer dereference. Remote exploitation of the attack is pos…

  • Medium 4.3

    omec-project amf handler.go RANConfiguration null pointer dereference

    A security flaw has been discovered in omec-project amf up to 2.1.3-dev. The impacted element is the function RANConfiguration of the file ngap/handler.go. The manipulation results in null pointer dereference. The attack may be launched remotely. The exploit …

  • Medium 5.3

    qs.stringify crashes on null/undefined entries in comma-format arrays under encodeValuesOnly

    ### Summary `qs.stringify` throws `TypeError` when called with `arrayFormat: 'comma'` and `encodeValuesOnly: true` on an array containing `null` or `undefined`. The throw is synchronous and not handled by any of qs's null-related options (`skipNulls`, `strict…

  • Low 2.5

    libsixel: NULL pointer dereference

    libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, a wrong NULL check after an allocation call in sixel_decode_raw and sixel_decode causes a NULL pointer dereference whenever the allocation fails. The check tests …

  • High 7.5

    BIG-IP HTTP/2 vulnerability

    When an HTTP/2 profile and an iRule containing the HTTP::redirect or HTTP::respond command are configured on a virtual server, undisclosed requests can cause the Traffic Management Microkernel (TMM) process to terminate.  Note: Software versions which have re…

  • Low 3.3

    NanaZip: Null-pointer dereference in NanaZip UFS parser when root inode is a symlink

    NanaZip is an open source file archive. From 5.0.1252.0 to before 6.0.1698.0, a null-pointer dereference exists in the UFS/UFS2 filesystem image parser in NanaZip. The vulnerability is triggered when opening a crafted UFS image where the root inode (inode 2) …

  • Medium 5.5

    Illustrator | NULL Pointer Dereference (CWE-476)

    Illustrator versions 29.8.6, 30.3 and earlier are 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…

  • High 7.4

    Windows TCP/IP Denial of Service Vulnerability

    Windows TCP/IP Denial of Service Vulnerability

  • High 7.1

    Windows TCP/IP Denial of Service Vulnerability

    Windows TCP/IP Denial of Service Vulnerability

  • Medium 5.5

    Windows Lightweight Directory Access Protocol (LDAP) Denial of Service Vulnerability

    Null pointer dereference in Windows LDAP - Lightweight Directory Access Protocol allows an authorized attacker to deny service locally.

  • High 7.4

    Windows TCP/IP Denial of Service Vulnerability

    Windows TCP/IP Denial of Service Vulnerability

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

  • Medium 6.5

    Windows Storport Miniport Driver Denial of Service Vulnerability

    Null pointer dereference in Windows Storport Miniport Driver allows an unauthorized attacker to deny service over a network.

  • Medium 6.8

    Null pointer dereference for some Intel(R) QAT software drivers for Windows before version 2.6.0 within Ring 3: User Ap…

  • Medium 6.9

    Null pointer dereference for some Intel(R) QAT software drivers for Windows before version 1.13 within Ring 3: User App…

  • High 7.5

    The affected devices contain a null pointer dereference vulnerability while processing specially crafted IPv4 requests.…

  • Medium 6.2

    A null pointer dereference was addressed with improved input validation. This issue is fixed in iOS 26.5 and iPadOS 26.…

  • Medium 4.3

    Open5GS SMF smf_nsmf_handle_create_data_in_hsmf null pointer dereference

    A vulnerability was determined in Open5GS up to 2.7.7. Affected is the function smf_nsmf_handle_create_data_in_hsmf of the component SMF. Executing a manipulation can lead to null pointer dereference. The attack may be performed from remote. The exploit has b…

  • Low 2.1

    Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

    In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to  a NULL pointer dereference, resulting in a segmentation fault and denial of service. The v…

  • Low 2.9

    NULL pointer dereference in SOAP apache:Map decoder with missing <value>

    In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, when a SOAP server has a typemap configured, the decoding process contains a mistake which checks the wrong variable in case of missing value element.  This…

  • Low 2.3

    Argo Workflows: SSO RBAC Delegation Nil Pointer Dereference DoS (gatekeeper.go)

    Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. From version 4.0.0 to before version 4.0.5, a nil pointer dereference in server/auth/gatekeeper.go rbacAuthorization() causes a panic (denial of s…

  • Medium 5.9
    CVE-2026-6666 Public exploit

    PgBouncer crash in kill_pool_logins_server_error

    A possible null pointer reference in PgBouncer before 1.25.2 could lead to a crash, if a server sends an error response without SQLSTATE field.

  • High 7.5

    net: bonding: Fix nd_tbl NULL dereference when IPv6 is disabled

    In the Linux kernel, the following vulnerability has been resolved: net: bonding: Fix nd_tbl NULL dereference when IPv6 is disabled When booting with the 'ipv6.disable=1' parameter, the nd_tbl is never initialized because inet6_init() exits before ndisc_init(…

  • Medium 6.5

    Incus: Nil Dereferences on Restore via Malformed YAML

    Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a…

  • Medium 6.5

    Incus: Nil-Pointer Dereference via S3 Bucket Import

    Incus is a system container and virtual machine manager. Prior to version 7.0.0, a missing error handling could lead an authenticated Incus user to cause a daemon crash through the import of a truncated storage bucket backup file. This issue has been patched …

  • High 7.5

    GoBGP: Panic in AdjRib.Update via malformed BGP Update message (Nil Pointer Dereference)

    GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. In version 4.4.0, an unauthenticated remote BGP peer can trigger a fatal panic in GoBGP by sending a specially crafted BGP UPDATE message. When the server rec…

  • High 7.5

    GoBGP: Remote Denial of Service (Panic) via Malformed Well-known Path Attribute

    GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. In version 4.3.0, a remote Denial of Service (DoS) vulnerability exists in GoBGP due to a nil pointer dereference. When a malformed BGP UPDATE message contain…

  • Medium 6.5

    Post-auth null pointer dereference when aggregating against a view with empty search pipeline

    An authenticated user can crash mongod when running $rankFusion or $scoreFusion with an empty pipeline on a view. When resolving a view, the server inspects the aggregation pipeline to determine whether it begins with an Atlas Search stage. For $rankFusion an…

  • Low 3.7

    Tor before 0.4.9.7 has a NULL pointer dereference when a CERT cell is received out of order, aka TROVE-2026-006.

  • High 7.1

    Incus nil-pointer dereference in custom volume import allows denial of service

    Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The custo…

  • High 7.1

    Incus nil-pointer dereference in storage bucket import allows denial of service

    Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage bucket import logic allows an authenticated user with access to the storage bucket feature to cause the Incus daemon to crash. The vulne…