CVE-2021-37654

Source
https://cve.org/CVERecord?id=CVE-2021-37654
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-37654.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-37654
Aliases
Downstream
openSUSE (2)
Related
Published
2021-08-12T21:15:08Z
Modified
2026-08-03T11:57:12Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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 CHECK-fail in debug builds of TensorFlow using tf.raw_ops.ResourceGather or a read from outside the bounds of heap allocated data in the same API in a release build. The implementation does not check that the batch_dims value that the user supplies is less than the rank of the input tensor. Since the implementation uses several for loops over the dimensions of tensor, this results in reading data from outside the bounds of heap allocated buffer backing the tensor. We have patched the issue in GitHub commit bc9c546ce7015c57c2f15c168b3d9201de679a1d. 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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "2.3.0"
                },
                {
                    "fixed":  "2.3.4"
                },
                {
                    "introduced":  "2.4.0"
                },
                {
                    "fixed":  "2.4.3"
                }
            ],
            "source":  "CPE_RANGE",
            "vendor_product":  "google:tensorflow"
        },
        {
            "cpes":  [
                "cpe:2.3:a:google:tensorflow:2.5.0:*:*:*:*:*:*:*",
                "cpe:2.3:a:google:tensorflow:2.6.0:rc0:*:*:*:*:*:*",
                "cpe:2.3:a:google:tensorflow:2.6.0:rc1:*:*:*:*:*:*",
                "cpe:2.3:a:google:tensorflow:2.6.0:rc2:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "2.5.0"
                },
                {
                    "last_affected":  "2.5.0"
                },
                {
                    "introduced":  "2.6.0-rc0"
                },
                {
                    "last_affected":  "2.6.0-rc0"
                },
                {
                    "introduced":  "2.6.0-rc1"
                },
                {
                    "last_affected":  "2.6.0-rc1"
                },
                {
                    "introduced":  "2.6.0-rc2"
                },
                {
                    "last_affected":  "2.6.0-rc2"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "google:tensorflow"
        }
    ]
}
References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source":  "REFERENCES"
}

Affected versions

0.*
0.5.0
0.6.0
v1.*
v1.1.0-rc1
v1.1.0-rc2
v1.12.1
v1.6.0-rc1
v1.9.0-rc2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-37654.json"