CVE-2021-29565

Source
https://cve.org/CVERecord?id=CVE-2021-29565
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29565.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29565
Aliases
Related
Published
2021-05-14T20:15:13.603Z
Modified
2026-02-24T11:39:22.788067Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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/blob/fdc82089d206e281c628a93771336bf87863d5e8/tensorflow/core/kernels/sparsefillemptyrowsop.cc#L230-L231) that was covered under a TODO. If the dense_shape tensor is empty, then dense_shape_t.vec<>() would cause a null pointer dereference in the implementation of the op. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29565.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29565-708f2ef0",
        "source": "https://github.com/tensorflow/tensorflow/commit/faa76f39014ed3b5e2c158593b1335522e573c7f",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function",
        "digest": {
            "function_hash": "242495626016707110894405225303549753897",
            "length": 1322.0
        },
        "target": {
            "function": "SparseFillEmptyRowsOpImpl",
            "file": "tensorflow/core/kernels/sparse_fill_empty_rows_op.cc"
        }
    },
    {
        "id": "CVE-2021-29565-911b7f61",
        "source": "https://github.com/tensorflow/tensorflow/commit/faa76f39014ed3b5e2c158593b1335522e573c7f",
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "106865202515293039975587488495264557461",
                "93983386454117613759528778230665870543",
                "133279339414400590211336512238020279736"
            ]
        },
        "target": {
            "file": "tensorflow/core/kernels/sparse_fill_empty_rows_op.cc"
        }
    }
]