CVE-2021-37653

Source
https://cve.org/CVERecord?id=CVE-2021-37653
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37653.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37653
Aliases
Downstream
Related
Published
2021-08-12T18:15:10.803Z
Modified
2026-03-10T23:59:07.705496796Z
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. In affected versions an attacker can trigger a crash via a floating point exception in tf.raw_ops.ResourceGather. The implementation computes the value of a value, batch_size, and then divides by it without checking that this value is not 0. We have patched the issue in GitHub commit ac117ee8a8ea57b73d34665cdf00ef3303bc0b11. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.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
Introduced
Fixed
Introduced
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.4"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.5.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.6.0-rc2"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37653.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "129106936897480206705526765394221576157",
                "218182203206382768508374379692228110325",
                "300438574072121986329668580406975817930",
                "233021582064094488905435881021374609423",
                "203252428300668200160308480213583316735",
                "81509696514124274865843255894116147937",
                "110114219869388242650979045685846250552",
                "323995640144219991985989629915829546853",
                "282216816041779056984696452875973348184",
                "245233784443107657072028694896822268697",
                "225322501164526251936789298000063048365",
                "21148722495817246199883610514845818041"
            ]
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/ac117ee8a8ea57b73d34665cdf00ef3303bc0b11",
        "signature_type": "Line",
        "id": "CVE-2021-37653-bf2fb621",
        "target": {
            "file": "tensorflow/core/kernels/resource_variable_ops.cc"
        }
    }
]