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

232 results · Clear filters · Feed

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.4

    The phones have the heap overflow, out-of-bounds read, and null pointer vulnerabilities in the fingerprint trusted appl…

  • Low 3.3

    A Malformed Lua script can crash Redis

    Redis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. The problem i…

  • Low 2.9

    Segmentation Fault caused by MP4Box -lsr in gpac/gpac

    Segmentation Fault caused by MP4Box -lsr in GitHub repository gpac/gpac prior to 2.1.0-DEV.

  • Low —

    Chrono has potential segfault issue in SPIFFE authenticator

    ### Impact Several vulnerabilities have been reported in the `time` and `chrono` crates related to handling of calls to `localtime_r`. You can follow some of the discussions [here](https://github.com/chronotope/chrono/issues/602) and [here](https://github.com…

  • Low 3.3

    Adobe Acrobat Pro DC NULL Pointer Dereference could lead to Application-denial-of-service

    Acrobat Reader DC version 21.007.20099 (and earlier), 20.004.30017 (and earlier) and 17.011.30204 (and earlier) are affected by a Null pointer dereference vulnerability when parsing a specially crafted file. An unauthenticated attacker could leverage this vul…

  • Low 3.3

    Adobe Acrobat Pro DC NULL Pointer Dereference could lead to Application-denial-of-service

    Acrobat Reader DC version 21.007.20099 (and earlier), 20.004.30017 (and earlier) and 17.011.30204 (and earlier) are affected by a Null pointer dereference vulnerability when parsing a specially crafted file. An unauthenticated attacker could leverage this vul…

  • Low 2.3

    A vulnerability in mfc driver prior to SMR Oct-2021 Release 1 allows memory corruption via NULL-pointer dereference.

  • Low 3.3

    NULL pointer dereference vulnerability in NPU driver prior to SMR Sep-2021 Release 1 allows attackers to cause memory c…

  • Low 3.3

    NULL pointer dereference vulnerability in ION driver prior to SMR Sep-2021 Release 1 allows attackers to cause memory c…

  • Low 3.3

    Adobe After Effects NULL Pointer Dereference vulnerability

    Adobe After Effects version 18.2 (and earlier) is affected by a Null pointer dereference vulnerability when parsing a specially crafted file. An unauthenticated attacker could leverage this vulnerability to achieve an application denial-of-service in the cont…

  • Low 3.5

    Denial-of-Service (DoS) Vulnerability

    A Denial-of-Service (DoS) vulnerability was discovered in F-Secure Linux Security whereby the FSAVD component used in certain F-Secure products can crash while scanning larger packages/fuzzed files. The exploit can be triggered remotely by an attacker. A succ…

  • Low 2.5

    Incorrect Error Handling in Bluetooth HCI core

    Incorrect Error Handling in Bluetooth HCI core. Zephyr versions >= v1.14.2, >= v2.2.0 contain NULL Pointer Dereference (CWE-476). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gc66-xfrc-24qr

  • Low 2.5

    Type confusion during tensor casts lead to dereferencing null pointers

    TensorFlow is an end-to-end open source platform for machine learning. Calling TF operations with tensors of non-numeric types when the operations expect numeric tensors result in null pointer dereferences. The conversion from Python array to C++ array(https:…

  • Low 2.5

    Reference binding to null pointer in `MatrixDiag*` ops

    TensorFlow is an end-to-end open source platform for machine learning. The implementation of `MatrixDiag*` operations(https://github.com/tensorflow/tensorflow/blob/4c4f420e68f1cfaf8f4b6e8e3eb857e9e4c3ff33/tensorflow/core/kernels/linalg/matrix_diag_op.cc#L195-…

  • Low 2.5

    Null pointer dereference via invalid Ragged Tensors

    TensorFlow is an end-to-end open source platform for machine learning. Calling `tf.raw_ops.RaggedTensorToVariant` with arguments specifying an invalid ragged tensor results in a null pointer dereference. The implementation of `RaggedTensorToVariant` operation…

  • Low 2.5

    Session operations in eager mode lead to null pointer dereferences

    TensorFlow is an end-to-end open source platform for machine learning. In eager mode (default in TF 2.0 and later), session operations are invalid. However, users could still call the raw ops associated with them and trigger a null pointer dereference. The im…

  • Low 2.5

    Null dereference in Grappler's `TrySimplify`

    TensorFlow is an end-to-end open source platform for machine learning. The implementation of TrySimplify(https://github.com/tensorflow/tensorflow/blob/c22d88d6ff33031aa113e48aa3fc9aa74ed79595/tensorflow/core/grappler/optimizers/arithmetic_optimizer.cc#L390-L4…

  • Low 2.5

    Null pointer dereference in `EditDistance`

    TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a null pointer dereference in the implementation of `tf.raw_ops.EditDistance`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/7986…

  • Low 2.5

    Null pointer dereference in `SparseFillEmptyRows`

    TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a null pointer dereference in the implementation of `tf.raw_ops.SparseFillEmptyRows`. This is because of missing validation(https://github.com/tensorflow/tensorflow…

  • Low 2.5

    Reference binding to null in `ParameterizedTruncatedNormal`

    TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger undefined behavior by binding to null pointer in `tf.raw_ops.ParameterizedTruncatedNormal`. This is because the implementation(https://github.com/tensorflow/tensorf…

  • Low 2.5

    Reference binding to nullptr in `SdcaOptimizer`

    TensorFlow is an end-to-end open source platform for machine learning. The implementation of `tf.raw_ops.SdcaOptimizer` triggers undefined behavior due to dereferencing a null pointer. The implementation(https://github.com/tensorflow/tensorflow/blob/60a45c8b6…

  • Low 2.5

    Undefined behavior in `MaxPool3DGradGrad`

    TensorFlow is an end-to-end open source platform for machine learning. The implementation of `tf.raw_ops.MaxPool3DGradGrad` exhibits undefined behavior by dereferencing null pointers backing attacker-supplied empty tensors. The implementation(https://github.c…

  • Low 2.5

    Heap buffer overflow and undefined behavior in `FusedBatchNorm`

    TensorFlow is an end-to-end open source platform for machine learning. The implementation of `tf.raw_ops.FusedBatchNorm` is vulnerable to a heap buffer overflow. If the tensors are empty, the same implementation can trigger undefined behavior by dereferencing…

  • Low 2.5

    Invalid validation in `SparseMatrixSparseCholesky`

    TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a null pointer dereference by providing an invalid `permutation` to `tf.raw_ops.SparseMatrixSparseCholesky`. This is because the implementation(https://github.com/t…

  • Low 2.5

    Null pointer dereference in `StringNGrams`

    TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a dereference of a null pointer in `tf.raw_ops.StringNGrams`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/1cdd4da14282210cc759e…

  • Low 3.3

    A null pointer dereference vulnerability was found in netpbm before 10.61. A maliciously crafted SVG file could cause t…