CVE-2021-37674

Source
https://cve.org/CVERecord?id=CVE-2021-37674
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37674.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-37674
Aliases
Downstream
Related
Published
2021-08-12T23:15:07.970Z
Modified
2026-04-02T07:10:54.472313Z
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 denial of service via a segmentation fault in tf.raw_ops.MaxPoolGrad caused by missing validation. The implementation misses some validation for the orig_input and orig_output tensors. The fixes for CVE-2021-29579 were incomplete. We have patched the issue in GitHub commit 136b51f10903e044308cf77117c0ed9871350475. 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"
        }
    ]
}

Affected versions

0.*
0.12.0-rc0
0.12.0-rc1
0.12.1
0.5.0
0.6.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.0-rc0
v2.2.0-rc1
v2.2.0-rc2
v2.2.0-rc3
v2.2.0-rc4
v2.2.1
v2.2.2
v2.2.3
v2.3.0
v2.3.0-rc0
v2.3.0-rc1
v2.3.0-rc2
v2.3.1
v2.3.2
v2.3.3
v2.4.0
v2.4.0-rc0
v2.4.0-rc1
v2.4.0-rc2
v2.4.0-rc3
v2.4.0-rc4
v2.4.1
v2.4.2
v2.5.0
v2.5.0-rc0
v2.5.0-rc1
v2.5.0-rc2
v2.5.0-rc3
v2.6.0-rc0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37674.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "function_hash": "31570609277633401106222256452068387691",
            "length": 4202.0
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/136b51f10903e044308cf77117c0ed9871350475",
        "id": "CVE-2021-37674-263449d6",
        "target": {
            "file": "tensorflow/core/kernels/maxpooling_op.cc",
            "function": "SpatialMaxPoolWithArgMaxHelper"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "function_hash": "29276202328383850718060768810697803666",
            "length": 2530.0
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/136b51f10903e044308cf77117c0ed9871350475",
        "id": "CVE-2021-37674-806c790a",
        "target": {
            "file": "tensorflow/core/kernels/pooling_ops_common.cc",
            "function": "PoolParameters::PoolParameters"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "300545745172636759101116666692124250052",
                "136334434737533024159090578033901353510",
                "184429245809884864649767382928212710591",
                "49456323497966006715979208064567184416"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/136b51f10903e044308cf77117c0ed9871350475",
        "id": "CVE-2021-37674-cf1fa930",
        "target": {
            "file": "tensorflow/core/kernels/pooling_ops_common.cc"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "321510953903970165784769487578693180000",
                "220851792359686731738435691643445972526",
                "212858347606659837489648021025971220867",
                "9977049370741135102315464992886612903",
                "111528897354432503072734285107859990630",
                "97185756686036762472331409025436480803",
                "313525491627767760650827937378965479927",
                "210185103215447344364381746563181112859"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/136b51f10903e044308cf77117c0ed9871350475",
        "id": "CVE-2021-37674-ec23509d",
        "target": {
            "file": "tensorflow/core/kernels/maxpooling_op.cc"
        }
    }
]