CVE-2021-29557

Source
https://cve.org/CVERecord?id=CVE-2021-29557
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29557.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29557
Aliases
Related
Published
2021-05-14T20:15:13.247Z
Modified
2026-03-13T22:14:03.306676Z
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 cause a denial of service via a FPE runtime error in tf.raw_ops.SparseMatMul. The division by 0 occurs deep in Eigen code because the b tensor is empty. 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
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.4"
        },
        {
            "introduced": "2.2.0"
        },
        {
            "fixed": "2.2.3"
        },
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.3"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.2"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29557.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "21513952004750728182034917014489761668",
                "140192354790627641109173947834920308795",
                "169366698426734696869297059953022770829"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/7f283ff806b2031f407db64c4d3edcda8fb9f9f5",
        "id": "CVE-2021-29557-b08f2e03",
        "target": {
            "file": "tensorflow/core/kernels/sparse_matmul_op.cc"
        }
    }
]