CVE-2021-29573

Source
https://cve.org/CVERecord?id=CVE-2021-29573
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29573.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29573
Aliases
Published
2021-05-14T20:15:13.970Z
Modified
2026-08-04T16:34:53.759650Z
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. The implementation of tf.raw_ops.MaxPoolGradWithArgmax is vulnerable to a division by 0. The implementation(https://github.com/tensorflow/tensorflow/blob/279bab6efa22752a2827621b7edb56a730233bd8/tensorflow/core/kernels/maxpooling_op.cc#L1033-L1034) fails to validate that the batch dimension of the tensor is non-zero, before dividing by this quantity. 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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "CPE_RANGE",
            "cpes": [
                "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "google:tensorflow",
            "extracted_events": [
                {
                    "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"
                }
            ]
        }
    ]
}
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
{
    "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/cve-osv-conversion/osv-output/CVE-2021-29573.json"
vanir_signatures
[
    {
        "source": "https://github.com/tensorflow/tensorflow/commit/376c352a37ce5a68b721406dc7e77ac4b6cf483d",
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "44670985124661887455381046666845378315",
                "176516111476546707094554733773242701372",
                "167652169381415049602301378703609168508"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29573-6c9f83cf",
        "target": {
            "file": "tensorflow/core/kernels/maxpooling_op.cc"
        },
        "deprecated": false
    }
]
vanir_signatures_modified
"2026-08-04T16:34:53Z"