CVE-2021-29524

Source
https://cve.org/CVERecord?id=CVE-2021-29524
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29524.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29524
Aliases
Related
Published
2021-05-14T20:15:11.710Z
Modified
2026-02-03T07:23:33.737491Z
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. An attacker can trigger a division by 0 in tf.raw_ops.Conv2DBackpropFilter. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/496c2630e51c1a478f095b084329acedb253db6b/tensorflow/core/kernels/convgradshape_utils.cc#L130) does a modulus operation where the divisor is controlled by the caller. 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

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29524.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/tensorflow/tensorflow/commit/fca9874a9b42a2134f907d2fb46ab774a831404a",
        "target": {
            "file": "tensorflow/core/kernels/conv_grad_shape_utils.cc"
        },
        "deprecated": false,
        "id": "CVE-2021-29524-e70b227c",
        "digest": {
            "line_hashes": [
                "261311867193361611646575011644900231409",
                "278886631364038063236369452410979050710",
                "120689287278957985436710813518048853241",
                "329422360420192671027093267965287157351"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/tensorflow/tensorflow/commit/fca9874a9b42a2134f907d2fb46ab774a831404a",
        "target": {
            "function": "ConvBackpropComputeDimensionsV2",
            "file": "tensorflow/core/kernels/conv_grad_shape_utils.cc"
        },
        "deprecated": false,
        "id": "CVE-2021-29524-e8b07ca2",
        "digest": {
            "length": 1994.0,
            "function_hash": "178896665387503270394432129170488060792"
        }
    }
]