CVE-2021-37651

Source
https://cve.org/CVERecord?id=CVE-2021-37651
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37651.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37651
Aliases
Downstream
Related
Published
2021-08-12T21:15:08.170Z
Modified
2026-03-13T22:01:13.133337Z
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. In affected versions the implementation for tf.raw_ops.FractionalAvgPoolGrad can be tricked into accessing data outside of bounds of heap allocated buffers. The implementation does not validate that the input tensor is non-empty. Thus, code constructs an empty EigenDoubleMatrixMap and then accesses this buffer with indices that are outside of the empty area. We have patched the issue in GitHub commit 0f931751fb20f565c4e94aa6df58d54a003cdb30. 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-37651.json"
vanir_signatures
[
    {
        "id": "CVE-2021-37651-43ced948",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "97987620362231370863824105425188932335",
                "29630648756099265064943196782979363555",
                "250175525051614092469576315811480929018",
                "219322048579675076154369764158709502275"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "tensorflow/core/kernels/fractional_avg_pool_op.cc"
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/0f931751fb20f565c4e94aa6df58d54a003cdb30",
        "signature_version": "v1",
        "deprecated": false
    }
]