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-03T07:23:44.302609Z
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

Database specific

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