CVE-2021-29598

Source
https://cve.org/CVERecord?id=CVE-2021-29598
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29598.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29598
Aliases
Related
Published
2021-05-14T20:15:15.353Z
Modified
2026-02-13T02:29:32.063131Z
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 SVDF TFLite operator is vulnerable to a division by zero error(https://github.com/tensorflow/tensorflow/blob/7f283ff806b2031f407db64c4d3edcda8fb9f9f5/tensorflow/lite/kernels/svdf.cc#L99-L102). An attacker can craft a model such that params->rank would be 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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29598.json"
vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/6841e522a3e7d48706a02e8819836e809f738682",
        "digest": {
            "function_hash": "126006674076099702640423048168274185044",
            "length": 5471.0
        },
        "id": "CVE-2021-29598-3125e4c0",
        "deprecated": false,
        "target": {
            "file": "tensorflow/lite/kernels/svdf.cc",
            "function": "Prepare"
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/6841e522a3e7d48706a02e8819836e809f738682",
        "digest": {
            "line_hashes": [
                "80879181849457025567931064804425318307",
                "275208270138265554943433297441316779621",
                "114870980204327581652002040496701348134",
                "31302434370357110486375985396261567436"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29598-9cdf6164",
        "deprecated": false,
        "target": {
            "file": "tensorflow/lite/kernels/svdf.cc"
        }
    }
]