CVE-2021-29597

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

TensorFlow is an end-to-end open source platform for machine learning. The implementation of the SpaceToBatchNd TFLite operator is vulnerable to a division by zero error. An attacker can craft a model such that one dimension of the block input is 0. Hence, the corresponding value in block_shape is 0. 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

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29597.json"
vanir_signatures
[
    {
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/6d36ba65577006affb272335b7c1abd829010708",
        "target": {
            "file": "tensorflow/lite/kernels/space_to_batch_nd.cc",
            "function": "ResizeOutputTensor"
        },
        "id": "CVE-2021-29597-5c6328e9",
        "digest": {
            "length": 1028.0,
            "function_hash": "37056058172486693947127743410484937216"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/6d36ba65577006affb272335b7c1abd829010708",
        "target": {
            "file": "tensorflow/lite/kernels/space_to_batch_nd.cc"
        },
        "id": "CVE-2021-29597-caa4b61b",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "120473008706310936749622681472154669924",
                "281408240440244832413560972589717573929",
                "31836549403993074546314880584465951924",
                "3474313174289552039715053978495461491"
            ]
        },
        "signature_type": "Line",
        "signature_version": "v1"
    }
]