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
Related
Published
2021-05-14T20:15:13.970Z
Modified
2026-03-15T22:41:20.730585Z
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.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "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"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29573.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "tensorflow/core/kernels/maxpooling_op.cc"
        },
        "source": "https://github.com/tensorflow/tensorflow/commit/376c352a37ce5a68b721406dc7e77ac4b6cf483d",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "44670985124661887455381046666845378315",
                "176516111476546707094554733773242701372",
                "167652169381415049602301378703609168508"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29573-6c9f83cf",
        "signature_type": "Line"
    }
]