CVE-2021-29538

Source
https://cve.org/CVERecord?id=CVE-2021-29538
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29538.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29538
Aliases
Related
Published
2021-05-14T20:15:12.353Z
Modified
2026-02-24T11:39:00.553249Z
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 cause a division by zero to occur in Conv2DBackpropFilter. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/1b0296c3b8dd9bd948f924aa8cd62f87dbb7c3da/tensorflow/core/kernels/convgradfilter_ops.cc#L513-L522) computes a divisor based on user provided data (i.e., the shape of the tensors given as arguments). If all shapes are empty then work_unit_size is 0. Since there is no check for this case before division, this results in a runtime exception, with potential to be abused for a denial of service. 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

vanir_signatures
[
    {
        "digest": {
            "line_hashes": [
                "324929951830919552292852552964558826722",
                "125228753382818540400591334887381218070",
                "90221298885569485258934159180681753575",
                "121956488963479845048606417661305347870",
                "286973072065033444553466007058475453628",
                "226211049892244163293098549223763689073",
                "129279513966689844778799936858437378436"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/c570e2ecfc822941335ad48f6e10df4e21f11c96",
        "id": "CVE-2021-29538-c1d36bfe",
        "target": {
            "file": "tensorflow/core/kernels/conv_grad_filter_ops.cc"
        }
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29538.json"